/////////////////////////////////////////////////////////////////////////
///@file  HTFTSTraderAPIDataType.h
///@brief 定义极速柜台交易API接口使用的业务数据类型
///@author
///@date
/////////////////////////////////////////////////////////////////////////

#pragma once

namespace HTFTS
{
    /// 错误信息长度
    static const unsigned short      ERROR_MESSAGE_LEN = 1024;
    /// 客户号长度
    static const unsigned short      USER_ID_LEN = 16;
    /// 密码长度
    static const unsigned short      PASSWORD_LEN = 33;
    /// 客户名称长度
    static const unsigned short      CUSTOMER_NAME_LEN = 21;
    /// 日期类型长度
    static const unsigned short         DATE_TYPE_LEN = 9;
    /// 时间类型长度
    static const unsigned short         TIME_TYPE_LEN = 9;
    /// 证券代码长度
    static const unsigned short      SECURITY_ID_LEN = 20;
    /// 证券简称长度
    static const unsigned short      SECURITY_NAME_LEN = 33;
    /// 摘要类型
    static const unsigned short      STOCK_NOTE_LEN = 21;
    /// 成交编号长度
    static const unsigned short      EXEC_ID_LEN = 13;
    /// ETF简称长度
    static const unsigned short      STOCK_ETF_NAME_LEN = 81;
    /// 证券类型长度
    static const unsigned short         SECURITY_TYPE_LEN = 3;
    /// ETF属性长度
    static const unsigned short         ETF_PROP_LEN = 3;
    /// 属性长度
    static const unsigned short         PROP_LEN = 3;
    /// 交易所交易号长度
    static const unsigned short      EXCHANGE_TRADE_ID_LEN = 32;
    /// 交易所委托号长度
    static const unsigned short      EXCHANGE_ORDER_ID_LEN = 32;
    /// 转账类型标志长度
    static const unsigned short      TRANS_FUND_TYPE_LEN = 3;
    /// 银行代码类型的长度
    static const unsigned short      BANK_CODE_TYPE_LEN = 7;
    /// 银行账号类型
    static const unsigned short      BANK_ACC_NO_TYPE_LEN = 41;
    /// 银行名称长度
    static const unsigned short      BANK_NAME_LEN = 81;
    /// 银行状态长度
    static const unsigned short      BANK_ACC_STATE_LEN = 2;
    /// 银行主副标志长度
    static const unsigned short      MAIN_FLAG_LEN = 2;
    /// token 长度
    static const unsigned short      TOKEN_LEN = 80;
    /// 备注的长度
    static const unsigned short      LOGIN_NOTE_LEN = 256;
    /// 配置文件路径长度
    static const unsigned short      CONFIG_FILE_PATH_LEN = 128;
    /// 备注的长度
    static const unsigned short      NOTE_LEN = 256;
    /// mac地址长度
    static const unsigned short      MAC_LEN = 23;
    /// ip地址长度（支持ipv6）
    static const unsigned short      IP_LEN = 40;
    /// 主机名长度
    static const unsigned short      HOST_NAME_LEN = 64;
    /// 磁盘序号长度
    static const unsigned short      DISK_NO_LEN = 22;
    /// cpu编号长度
    static const unsigned short      CPU_NO_LEN = 22;
    /// 客户所属营业部
    static const unsigned short      BRANCH_CODE_LEN = 4;
    ///成交状态集合
    static const unsigned short      TRADE_STATUS_SET_LEN = 31;
    /// 报盘合同号长度
    static const unsigned short      REPORT_CONTRACT_NO_LEN = 11;
    /// 合约号类型长度
    static const unsigned short      BOND_TYPE_LEN = 21;
    /// 备注长度
    static const unsigned short      NOTE_TYPE_LEN = 80;
    /// 股东代码长度
    static const unsigned short  HOLDER_NO_TYPE = 17;
    /// 行权代码长度
    static const unsigned short      EXERCISE_CODE_LONG = 10;
    ///业务类型
    static const unsigned short         BUSINESS_TYPE_LONG = 4;
    ///买卖类型
    static const unsigned short      BS_NAME_LEN = 21;
    /// 转融券产品长度
    static const unsigned short CREDIT_SEC_PRO_LEN = 11;
    /// 转融资产品长度
    static const unsigned short CREDIT_FUND_PRO_LEN = 11;
    /// 委托序号
    static const unsigned short ORDER_SEQ_NO_LEN = 11;
    /// 合约编号
    static const unsigned short BOND_NO_LEN = 21;
    /// 原因
    static const unsigned short REASON_LEN = 255;
    /// 业务类型长度
    static const unsigned short BusiOrderTypeLen = 2;
    /// 流水生成时间
    static const unsigned short SERIAL_TIME_LEN = 27;
    /// 席位号
    static const unsigned short SEAT_LEN = 9;
    ///终端名称长度
    static const unsigned short TERMINAL_NAME_LEN = 30;
    /// 索引证券代码长度
    static const unsigned short INDEX_SECURITY_ID_LEN = 9;
    /// 索引股东代码长度
    static const unsigned short INDEX_HOLDER_NO_LEN = 16;
    /// 点评起始日期长度
    static const unsigned short START_END_DATE = 9;
    /// 一句话点评长度
    static const unsigned short SNOTE_LEN = 81;
    /// 备注的长度
    static const unsigned short SNOTE2_LEN = 201;
    /// 点评日期长度
    static const unsigned short    SDATE_LEN = 8;

    ///baixw added @20200513
    ///返回信息长度
    static const unsigned short    RET_INFO_LEN = 256;
    ///订单业务代码长度
    static const unsigned short    BUSI_CODE_LEN = 7;
    ///客户所属营业部名称长度
    static const unsigned short    CUST_BRANCH_NAME_LEN = 41;
    ///信用级别代码长度
    static const unsigned short    CREDIT_LEVEL_CODE_LEN = 13;
    ///销售机构代码
    static const unsigned short    INSTITU_CODE_LEN = 4;
    ///融资信用产品代码
    static const unsigned short    FINANCING_CREDIT_PRODUCT_LEN = 11;
    ///融券信用产品
    static const unsigned short SECURITIES_LOAN_CREDIT_PRODUCT_LEN = 11;
    ///委托类别(预约类别)
    static const unsigned short BOOKING_TYPE_LEN = 7;
    ///客户所属系统编号
    static const unsigned short CUST_SYS_NO_TYPE_LEN = 7;
    ///借新还旧合约流水号（委托类别为：0756-借新还旧时必输）
    static const unsigned short BOND_SERIAL_NO_TYPE_LEN = 13;
    ///报盘柜员
    static const unsigned short REPORT_OPERATOR_LEN = 7;
    //委托来源
    static const unsigned short ORDER_SRC_LEN = 21;
    //订单来源
    static const unsigned short ORDER_SRC2_LEN = 61;
    //对方交易单元
    static const unsigned short OPPOSITE_TRADE_UNIT_LEN = 13;
    //成交约定号
    static const unsigned short  DONE_NEGO_NO_LEN = 13;
    //约定号
    static const unsigned short  PROMISE_NO_LEN = 13;
    //交易签名
    static const unsigned short  TRADE_SIGNATURE_LEN = 13;
    //风险评测结果
    static const unsigned short  RISK_TEST_RESULT_LEN = 81;
    ///交易所错误代码
    static const unsigned short EXCHANGE_ERRCODE_LEN = 6;
    ///海外委托结算代码
    static const unsigned short FOREIGN_ORDER_CODE_LEN = 4;
    ///委托时间戳
    static const unsigned short ORDER_TIME_STAMP_LEN = 33;
    //订单系统编号
    static const unsigned short ORDER_SYS_NO_LEN = 7;
    //委托柜员
    static const unsigned short Order_Operator_LEN = 7;
    ///流水号
    static const unsigned short SERIAL_NO_LEN = 13;

    //关联流水号（原合约流水号）
    static const unsigned short RELATIVE_SERIAL_NO_TYPE_LEN = 13;
    //交易单元
    static const unsigned short TRADE_UNIT_TYPE_LEN = 9;
    //证件号码
    static const unsigned short CERT_NO_TYPE_LEN = 51;
    //客户倾向交易中心
    static const unsigned short SOPEN_EMP_TYPE_LEN = 7;
    //客户权限清单
    static const unsigned short CUST_LIMIT_LIST_TYPE_LEN = 61;
    //目的营业部代码（通买通卖）
    static const unsigned short TRADE_PASS_WORD_TYPE_LEN = 9;
    //市场名称
    static const unsigned short EXCHANGE_NAME_TYPE_LEN = 21;
    //币种名称
    static const unsigned short CURRENCY_NAME_TYPE_LEN = 21;
    //上次登入信息
    static const unsigned short LAST_LOGIN_INFO_TYPE_LEN = 61;
    //周边登录校验信息
    static const unsigned short EXT_LOGIN_CHECK_INFO_TYPE_LEN = 61;
    //市场名称
    static const unsigned short HOLDER_NAME_TYPE_LEN = 21;
    //产品代码
    static const unsigned short PRODUCT_CODE_TYPE_LEN = 9;
    //业务类型
    static const unsigned short BUSI_TYPE_LEN = 4;
    //匹配结果详情
    static const unsigned short RESULT_DETAIL_TYPE_LEN = 9;
    //客户投资期限
    static const unsigned short CUST_INVEST_TERM_TYPE_LEN = 4;
    //客户投资品种
    static const unsigned short CUST_INVEST_TYPE_LEN = 81;
    //客户风险等级
    static const unsigned short CUST_RISK_LEVEL_TYPE_LEN = 4;
    //产品投资期限
    static const unsigned short PRODUCT_INVEST_TERML_TYPE_LEN = 4;
    //产品投资品种
    static const unsigned short PRODUCT_INVEST_TYPE_LEN = 81;
    //产品风险等级
    static const unsigned short PRODUCT_RISK_LEVE_LTYPE_LEN = 4;
    //评测版本
    static const unsigned short VERSION_TYPE_LEN = 4;
    //不适合的风险等级
    static const unsigned short CUST_LIMIT_TYPE_LEN = 33;
    //业务类型
    static const unsigned short BUSI_TYPE_TYPE_LEN = 4;
    //投资者类型
    static const unsigned short INVESTER_TYPE_LEN = 4;
    //信用资金账户
    static const unsigned short CREDIT_FUND_ACCOUNT_TYPE_LEN = 11;
    //普通资金账户
    static const unsigned short CMN_FUND_ACCOUNT_TYPE_LEN = 11;
    //普通账户席位
    static const unsigned short CMN_SEAT_TYPE_LEN = 11;
    //通讯密码
    static const unsigned short OMMUNICATE_PWD_TYPE_LEN = 17;
    //返回信息
    static const unsigned short RETURN_INFO_TYPE_LEN = 21;
    //警示信息代码
    static const unsigned short WARN_CODE_TYPE_LEN = 257;
    //警示信息
    static const unsigned short WARN_INFO_TYPE_LEN = 257;
    //基金公司代码
    static const unsigned short FUND_COMPANY_CODE_TYPE_LEN = 7;
    //风险承受等级
    static const unsigned short RISK_LEVEL_TYPE_LEN = 4;
    //风险等级汉字名称
    static const unsigned short RISK_LEVEL_NAME_TYPE_LEN = 31;
    //客户投资期限
    static const unsigned short INVEST_TERM_TYPE_LEN = 7;
    //客户投资品种
    static const unsigned short INVEST_TYPE_LEN = 81;
    //客户内转流水号
    static const unsigned short INWARD_SERIAL_NO_LEN = 31;

    ///<成交状态名称
    static const unsigned short DONE_STATUS_TYPE_LEN = 16;
    ///<委托状态名称
    static const unsigned short ENTRUST_STATUS_TYPE_LEN = 16;
    ///<委托子业务
    static const unsigned short ORDER_SUB_TYPE_TYPE_LEN = 4;

    ///<定位串
    static const unsigned short SERIAL0_TYPE_LEN = 20;
    ///< 合同编号
    static const unsigned short SORDER_TYPE_LEN = 11;
    ///< 成交编号
    static const unsigned short SETTLEMENT_ID_TYPE_LEN = 21;
    //返回信息
    static const unsigned short RET_INFO_TYPE_LEN = 256;
    //订单业务代码
    static const unsigned short BUSI_CODE_TYPE_LEN = 7;
    //客户所属营业部名称
    static const unsigned short CUST_BRANCH_NAME_TYPE_LEN = 41;
    //信用级别代码
    static const unsigned short CREDIT_LEVEL_CODE_TYPE_LEN = 13;
    //销售机构代码
    static const unsigned short INSTITU_CODE_TYPE_LEN = 4;
    //融资信用产品
    static const unsigned short FINANCING_CREDIT_PRODUCT_TYPE_LEN = 11;
    //融券信用产品
    static const unsigned short SECURITIES_LOAN_CREDIT_PRODUCT_TYPE_LEN = 11;
    //产品编号
    static const unsigned short PRODUCT_NO_TYPE_LEN = 11;
    //委托类别
    static const unsigned short ORDER_TYPE_TYPE_LEN = 7;
    //报盘席位
    static const unsigned short SEAT_TYPE_LEN = 9;
    //报盘柜员
    static const unsigned short REPORT_OPERATOR_TYPE_LEN = 7;
    //委托来源
    static const unsigned short ORDER_SRC_TYPE_LEN = 21;
    //订单来源
    static const unsigned short ORDER_SRC2_TYPE_LEN = 61;
    //对方交易单元
    static const unsigned short OPPOSITE_TRADE_UNIT_TYPE_LEN = 13;
    //成交约定号
    static const unsigned short DONE_NEGO_NO_TYPE_LEN = 13;
    //交易签名
    static const unsigned short TRADE_SIGNATURE_TYPE_LEN = 13;
    //风险评测结果
    static const unsigned short RISK_TEST_RESULT_TYPE_LEN = 81;
    //交易所错误代码
    static const unsigned short EXCHANGE_ERRCODE_TYPE_LEN = 6;
    //海外委托结算代码
    static const unsigned short FOREIGN_ORDER_CODE_TYPE_LEN = 4;
    //委托时间戳
    static const unsigned short ORDER_TIME_STAMP_TYPE_LEN = 33;
    //订单系统编号
    static const unsigned short ORDER_SYS_NO_TYPE_LEN = 7;
    //委托柜员
    static const unsigned short ORDER_OPERATOR_TYPE_LEN = 7;

    static const unsigned short PRODUCT_NO_LEN = 11;

    static const unsigned short WARN_PROP_LEN = 33;
    //协议回购备注
    static const unsigned short XYHG_NOTE_TYPE_LEN = 201;
    //扩展备注
    static const unsigned short MEMO_TYPE = 1801;
    // 综合类备注长度
    static const unsigned short COMPOSITE_NOTE_TYPE = 161;

    static const unsigned short SOURCE_OF_REQ_LEN = 300;
    // 附加数据
    static const unsigned short EXTEND_DATA_LEN = 41;
    // 委托来源
    static const unsigned short ORDER_SOURCE_LEN = 81;
    //add by liaojb, 20200826
    //新股配号代码长度
    static const unsigned short IPO_MATCH_NUMBER_LEN = 9;
    //新股配号代码名称长度
    static const unsigned short IPO_MATCH_NUMBER_NAME_LEN = 41;
    //起始配号长度
    static const unsigned short START_IPO_MATCH_NUMBER_LEN = 13;
    //索引流水号长度
    static const unsigned short INDEX_SERIAL_LEN = 31;
    //处理信息长度
    static const unsigned short HANDLE_MSG_LEN = 81;
    //联系方式
    static const unsigned short PHONE_LEN = 31;
    //交易员
    static const unsigned short TRADER_LEN = 14;
    //委托属性
    static const unsigned short ENTRUST_ATTR_LEN = 21;
    //
    static const unsigned short BRANCH_ID_LEN = 8;
    //资金代码
    static const unsigned short CLR_CODE_LEN = 9;

    //B股结算会员号类型
    static const unsigned short  BSHARE_CLEAR_LEN = 9;
    //低价委托确认标记类型
    static const unsigned short LOWPRICE_ORDERCONF_FLAG_LEN = 2;
    //客户委托确认标记
    static const unsigned short CUST_ORDERCONF_FLAG_LEN = 2;
    //股份性质
    static const unsigned short STOCK_ATTRIBUTE_LEN = 3;
    //公司代码
    static const unsigned short COMPANY_CODE_TYPE_LEN = 9;
    //公司简称
    static const unsigned short COMPANY_INFO_TYPE_LEN = 41;
    //股东大会编码
    static const unsigned short HOLDER_MEETING_SEQ_TYPE_LEN = 11;
    //投票产品代码
    static const unsigned short VOTE_CODE_TYPE_LEN = 9;
    //股东大会类型
    static const unsigned short HOLDER_MEETING_TYPE_TYPE_LEN = 5;
    //股东大会名称
    static const unsigned short HOLDER_MEETING_DESC_TYPE_LEN = 256;
    //议案编号
    static const unsigned short VOTE_ID_TYPE_LEN = 11;
    //议案名称
    static const unsigned short VOTE_INFO_TYPE_LEN = 201;
    //议案类型
    static const unsigned short VOTE_TYPE_TYPE_LEN = 5;
    //股东身份
    static const unsigned short VOTE_ROLE_TYPE_LEN = 51;
    //议案关系
    static const unsigned short VOTE_RELATION_TYPE_LEN = 101;
    //股份类别
    static const unsigned short STOCK_TYPE_TYPE_LEN = 21;
    //股票简称
    static const unsigned short STOCK_NAME_TYPE_LEN = 41;
    //投票产品代码指引
    static const unsigned short REF_CODE_TYPE_LEN = 151;
    //投票简称
    static const unsigned short VOTE_NAME_TYPE_LEN = 41;
    //职工类型
    static const unsigned short OPER_SEMP_TYPE_LEN = 7;
    //业务类型
    static const unsigned short BUSINESS_TYPE_LEN = 21;
    //券池模板编号
    static const unsigned short STK_POOL_TMPL_NO = 5;
    //处理状态
    static const unsigned short DEAL_STATUS_LEN = 3;
    // 客户名称
    static const unsigned short CUST_NAME_LEN = 121;
    // 交易商代码
    static const unsigned short TRADEID_LEN = 9;
    // 交易单元
    static const unsigned short TRADE_UNIT_LEN = 9;
    // 交易主体类型
    static const unsigned short TRADE_TYPE_LEN = 3;
    // 交易主体代码
    static const unsigned short TRADE_CODE_LEN = 21;
    // 客户成交申报编号
    static const unsigned short CUST_TRADE_ID_LEN = 11;
    // 算法类型
    static const unsigned short ALGO_TYPE_LEN = 3;
    // 收购人编码
    static const unsigned short TENDERID_TYPE_LEN = 7;
    // 收购人名称
    static const unsigned short TENDERNAME_TYPE_LEN = 51;
    // 状态
    static const unsigned short STATUS_LEN = 13;
    // 币种
    static const unsigned short CURRENCYT_LEN = 3;
    // 模式
    static const unsigned short CREDIT_MODE_TYPE_LEN = 2;
    // 预约号
    static const unsigned short RESER_NO_LEN = 33;
    // 质押类型长度
    static const unsigned short MORTGAGE_TYPE_LEN = 7;
    // 权益补偿方式长度
    static const unsigned short COMPENSATION_METHOD_LEN = 31;
    // 标的风险标志
    static const unsigned short TARGET_RISK_FlAG_LEN = 31;
    // 所属板块
    static const unsigned short BELONG_SECTION_LEN = 120;
    // 第二执行编号
    static const unsigned short SECONDARY_EXEC_ID_LEN = 21;
    // 业务标志长度
    static const unsigned short BUSI_MARK_TYPE_LEN = 3;
    // 非交易业务交易签名
    static const unsigned short NONTRADE_SIGNATURE_LEN = 81;
    // 职工代码
    static const unsigned short EMPLYER_TYPE_LEN = 7;
    // 权益类别
    static const unsigned short RIGHTS_TYPE_LEN = 3;
    // 权益编号
    static const unsigned short RIGHTS_NO_LEN = 11;
    // 上市状态
    static const unsigned short LISTED_STATUS_LEN = 2;
    // 公司行为代码
    static const unsigned short CORP_CODE_LEN = 21;
    // 公告编号
    static const unsigned short PUBLIC_NO_LEN = 31;
    // 非交易议案编号
    static const unsigned short BILL_NO_LEN = 31;
    // 中登申报类型
    static const unsigned short CHINA_CLEAR_REPORT_TYPE_LEN = 4;
    // 中登业务类别
    static const unsigned short CHINA_CLEAR_BUSI_TYPE_LEN = 4;
    // ISIN国际代码
    static const unsigned short ISIN_CODE_LEN = 13;
    // 客户组别
    static const unsigned short CUST_GROUP_LEN = 4;
    // 证券类别
    static const unsigned short SEC_CATEGORY_LEN = 4;
    // 非交易申报编号
    static const unsigned short NONTRADE_REPORTNO_LEN = 21;
    // 中登证券类别
    static const unsigned short CHINA_CLEAR_SEC_CATEGORY_LEN = 3;
    // 中登权益类别
    static const unsigned short CHINA_CLEAR_WRNT_TYPE_LEN = 3;
    // 辅助代码
    static const unsigned short ASSIST_SEC_CODE_LEN = 9;
    // 原成交日期类型
    static const unsigned short ORIGIN_DONE_LEN = 21;
    // 关联代码
    static const unsigned short	RELATIVE_CODE_LEN = 8;
    // 报盘合同号
    static const unsigned short RPT_CONTRACT_LEN = 21;
    // 清算编号
    static const unsigned short CLEAR_NO_LEN = 9;
    // 非交易受理编号
    static const unsigned short NONTRADE_ACCEPTNO_LEN = 21;
    // 深圳中登业务类别
    static const unsigned short SZ_CHINA_CLEAR_BUSI_TYPE_LEN = 5;
    // 转入托管单元
    static const unsigned short ASSIGN_SEAT_LEN = 9;
    // 非交易撤单流水号
    static const unsigned short WITHDRAW_NO_LEN = 21;
    // 销售渠道
    static const unsigned short SALE_CHANNEL_LEN = 11;

    /// 报价回购业务名称
    static const unsigned short BUSINESS_NAME_LEN = 40;
    // 指令类型
    static const unsigned short INSTRUCTION_TYPE = 3;
    // 市价类型
    static const unsigned short MARKET_ORDER_FLAG_TYPE_LEN = 4;
    /// 备注的长度
    static const unsigned short NOTE2_LEN = 81;
    ///到期续做类型长度
    static const unsigned short DUE_CONT_TYPE = 3;
    /// 报价申报类型长度
    static const unsigned short REPORT_TYPE_LEN = 5;
    // 交易商简称类型长度
    static const unsigned short TRADE_NAME_TYPE_LEN = 21;
    // 投资者账户名称类型长度
    static const unsigned short TRADE_ACC_NAME_TYPE_LEN = 61;
    /// 补充条款长度
    static const unsigned short SUPPLEMENTARY_TERMS_LEN = 201;
    // 初始交易编号
    static const unsigned short TRD_MATCH_ID_TYPE_LEN = 17;
    ///到期状态长度
    static const unsigned short QUOTO_STATUS_TYPE = 2;
    /// 质权人名称长度
    static const unsigned short PLEDGEE_NAME_LEN = 81;
    //SET号
    static const unsigned short SET_NO_TYPE_LEN = 9;
    //SET成交序号
    static const unsigned short SET_DONE_NO_TYPE_LEN = 13;
    //成交约定号
    static const unsigned short DEAL_NO_LEN = 17;
    //查询类型
    static const unsigned short QRY_TYPE_LEN = 13;
    //合并模式类型
    static const unsigned short MERGEMODE_LEN = 3;
    //北交所新债备注长度
    static const unsigned short BJNOTETYPE = 161;
    //交易所证券类别
    static const unsigned short EXCHSECTYPE_TYPE_LEN = 7;
    //后续索引条件
    static const unsigned short INDEX_CONDITION_TYPE = 80;
    //交收状态
    static const unsigned short DELIVER_STATS_TYPE = 5;

    /**************************************************************************************/
    /// 处理状态类型
    using DealStatusType = char[DEAL_STATUS_LEN];
    /// 提前冻结标记
    using PreFreezeFlagType = char;
    /// 配号代码类型
    using IPOMatchNumberType = char[IPO_MATCH_NUMBER_LEN];
    /// 配号名称类型
    using IPOMatchNumberNameType = char[IPO_MATCH_NUMBER_NAME_LEN];
    /// 起始配号类型
    using StartIPOMatchNumberType = char[START_IPO_MATCH_NUMBER_LEN];
    /// 流水索引号类型
    using IndexSerialType = char[INDEX_SERIAL_LEN];
    /// 处理信息类型
    using HandleMsgType = char[HANDLE_MSG_LEN];
    /// 操作员账号类型，客户号类型
    using UserIdType = char[USER_ID_LEN];
    /// 客户登录密码类型
    using PasswordType = char[PASSWORD_LEN];
    /// 客户名称类型
    using CustomerNameType = char[CUSTOMER_NAME_LEN];
    /// 交易日期类型
    using DateType = char[DATE_TYPE_LEN];
    /// 日期输入类型
    using DateInputType = char;
    /// 时间日期类型(HH:MM:SS)
    using TimeType = char[TIME_TYPE_LEN];
    /// 证券代码类型
    using SecurityIdType = char[SECURITY_ID_LEN];
    /// 证券简称类型
    using SecurityNameType = char[SECURITY_NAME_LEN];
    /// 错误信息类型
    using ErrorMessageType = char[ERROR_MESSAGE_LEN];
    /// 成交编号类型
    using ExecIdType = char[EXEC_ID_LEN];
    /// ETF简称类型
    using ETFNameType = char[STOCK_ETF_NAME_LEN];
    /// 证券品种(数据字典)
    using SecurityTypeType = char[SECURITY_TYPE_LEN];
    /// ETF属性(数据字典)
    using ETFPropType = char[ETF_PROP_LEN];
    /// 属性
    using PropType = char[PROP_LEN];
    /// 交易所成交号类型
    using ExchangeTradeIdType = char[EXCHANGE_TRADE_ID_LEN];
    /// 交易所委托号类型
    using ExchangeOrderIdType = char[EXCHANGE_ORDER_ID_LEN];
    /// 转账类型标志
    using TransFundType = char[TRANS_FUND_TYPE_LEN];
    /// 银行代码类型
    using  BankCode = char[BANK_CODE_TYPE_LEN];
    /// 银行账号类型
    using  BankAccNo = char[BANK_ACC_NO_TYPE_LEN];
    /// 银行名称
    using  BankName = char[BANK_NAME_LEN];
    /// 银行状态
    using  BankAccState = char[BANK_ACC_STATE_LEN];
    /// 银行账户主副标志
    using  MainFlag = char[MAIN_FLAG_LEN];
    /// 标志
    using FlagType = char[MAIN_FLAG_LEN];
    /// 登录token
    using TokenType = char[TOKEN_LEN];
    /// 配置文件路径
    using FilePath = char[CONFIG_FILE_PATH_LEN];
    /// 终端类型的类型(25-集中交易，26-融资融券)
    using TerminalTypeType = int;
    /// 登录备注类型
    using LoginNoteType = char[NOTE_LEN];
    /// 附加信息
    using ExtraNoteType = char[NOTE_LEN];
    /// 附加信息2
    using ExtraNote2Type = char[NOTE2_LEN];
    /// mac地址类型
    using MACAddrType = char[MAC_LEN];
    /// ip地址类型
    using IPType = char[IP_LEN];
    /// 主机名类型
    using HostNameType = char[HOST_NAME_LEN];
    /// 磁盘序号类型
    using DiskNoType = char[DISK_NO_LEN];
    /// CPU编号类型
    using CPUNoType = char[CPU_NO_LEN];
    ///客户所属营业部
    using BranchCodeType = char[BRANCH_CODE_LEN];
    ///成交状态集合
    using TradeStatusSetType = char[TRADE_STATUS_SET_LEN];
    ///备注类型
    using NoteType = char[NOTE_TYPE_LEN];
    ///协议回购备注类型
    using XYHGNoteType = char[XYHG_NOTE_TYPE_LEN];
    /// 报盘合同号类型
    using RptContractNoType = char[REPORT_CONTRACT_NO_LEN];
    /// 合同号类型
    using ContractNoType = char[REPORT_CONTRACT_NO_LEN];
    /// 合约号类型
    using BondNoType = char[BOND_TYPE_LEN];
    ///股东账号类型
    using HoldernoType = char[HOLDER_NO_TYPE];
    ///是否汇总
    using SummaryFlagType = char;
    /// 买卖类别名称
    using BsNameType = char[BS_NAME_LEN];
    /// 终端来源填写格式为:    [产品名称]！[终端类型];[内容]
    ///样例如下:
    ///PC终端填写：  JHTA!PC;IIP=123.112.154.118;IPORT=50361;LIP=192.168.118.107;MAC=54EE750B1713;HD=TF655AY91GHRVL
    ///手机终端填写：JHTA!MI;MIP=123.112.154.118;MPN=13446168007
    ///电话委托填写：JHTA!TO;TEL=010-66332211
    ///字段含义：1)产品名称：方舟、VIP等客户填写JHTA，spx，pb等产品需要根据自己情况填写
    ///          2)终端类型填写规则：PC端-PC，移动ios终端-MI， 移动Andriod终端-MA， 无盘机-DW， 电话委托-TO, 银行端-BK,其他-OH
    ///内容所涉及到的字段含义如下：
    ///          1)IIP为公网IP(若获取不到，填写NA)
    ///             2)IPORT为公网端口号(若获取不到，填写NA)
    ///             3)LIP为内网IP, 在多个IP地址情况下，应采集交易实际使用的IP地址
    ///             4)MAC为计算机mac地址，在多网卡情况下，优先获取本地有线非空MAC地址、本地无线非空MAC地址、本地蓝牙非空MAC地址
    ///             5)HD为硬盘序列号，在多块硬盘情况下，终端信息中的硬盘序列号、硬盘分区信息、系统盘卷标号是指承载操作系统的硬盘的序列号、硬盘分区信息、系统盘卷标号。
    ///             6)MIP为移动终端IP，
    ///             7)MPN为手机号码，
    ///             8)TEL为电话号码
    using SourceTerminalInfo = char[SOURCE_OF_REQ_LEN];

    /// 终端名称
    using  TerminalNameType = char[TERMINAL_NAME_LEN];
    /// 申报席位
    using SeatIDType = char[SERIAL0_TYPE_LEN];

    /// 请求编号类型（用以区分同一站点的请求）
    using RequestIDType = int;
    /// 报单引用号，客户不使用该字段时，填写EMPTY_NO(-1)， 最小值0，最大值999999999
    using OrderRefType = int;
    /// 会话号
    using SessionIdType = int;
    /// 委托价格类型
    using PriceType = double;
    /// 委托数量类型
    using VolumeType = double;
    /// 资金类型
    using MoneyType = double;
    /// 比例类型
    using RatioType = double;
    /// 批号类型
    using BatchIdType = int;
    /// 成交流水号类型
    using TradeIdType = int;
    /// 合同号类型
    using OrderIdType = int;
    /// 错误代码类型
    using ErrorIdType = int;
    /// 单位类型
    using UnitType = int;
    /// 篮子股票个数类型
    using BasketSecurityNumType = unsigned int;
    /// 查询记录数类型
    using RecordNumType = unsigned long long;
    ///    委托记录数类型
    using OrderCountType = unsigned long long;
    /// 证券状态类型
    using SecurityStatusType = short;
    /// ETF成份股显示序号
    using SecurityCountType = unsigned long long;
    /// 银证业务流水号
    using BSBusinesssiSerial = int;
    ///系统流水号
    using SerialNoType = int;
    ///次数
    using TimesType = int;
    ///请求应答标志
    using AnsFlagType = int;
    ///请求编号
    using ReqNoType = int;
    /// 期限
    using TermType = int;
    /// 成交笔数
    using DoneNumType = int;
    /// 现金替代总额类型
    using CashType = int;
    /// 转融券产品
    using CreditSecProType = char[CREDIT_SEC_PRO_LEN];
    /// 转融资产品
    using CreditFundProType = char[CREDIT_FUND_PRO_LEN];
    /// 委托序号
    using OrderSeqNoType = char[ORDER_SEQ_NO_LEN];
    /// 合约编号
    using BondNoType = char[BOND_NO_LEN];
    /// 排序
    using RankType = int;
    /// 类型
    using Type = char;
    /// 委托类别类型
    using EntrustOrderTypeType = char;
    /// 业务类型
    using BusiOrderType = char[BusiOrderTypeLen];
    /// 原因
    using ReasonType = char[REASON_LEN];
    /// 流水生成时间
    using SerialTimeType = char[SERIAL_TIME_LEN];
    /// 产品编号
    using ProductNoType = char[PRODUCT_NO_TYPE_LEN];
    /// 席位号
    using SeatType = char[SEAT_LEN];
    /// 客户权限
    using CustAttrType = char[11];
    /// 交易中心
    using TradeCenterType = char[4];

    /// start added by caosixi@20200427
    /// 营业部代码
    //using OrgId = char[BRANCH_CODE_LEN];
    /// 索引市场代码
    using IndexExchangeId = char;
    /// 索引证券代码
    using IndexSecurityId = char[INDEX_SECURITY_ID_LEN];
    /// 索引股东代码
    using IndexHolderNo = char[INDEX_HOLDER_NO_LEN];
    /// 最多返回数量
    using MaxRetCountType = int;
    /// 点评起始日期
    using StartEndDate = char[START_END_DATE];
    /// 点评日期
    using SDate = char[SDATE_LEN];
    /// 一句话点评信息
    using SNote = char[SNOTE_LEN];
    /// end added by caosixi@20200427

    /// 行情源头采集时间
    using HQSrcTmUSType = int;
    /// 前置行情更新时间戳
    using HQDstTmType = long long;

    ///委托是否收到撤单指令(1表示收到, 0表示未收到, 该字段只在委托回报中有意义，撤单回报中改字段无意义)
    using CancelFlagType = int;

    //baixw新增
    /// 行情期限
    using QuoteTermType = int;
    /// 发布方式
    using PublishType = char;
    ///成功失败标志(固定返回为Y)
    using OkFlagType = char;
    ///锁券状态
    using StkLockStatusType = int;
    ///返回信息
    using RetInfoType = char[RET_INFO_LEN];
    ///订单业务
    using BusiCode = char[BUSI_CODE_LEN];
    ///客户所属营业部名称
    using CustBranchNameType = char[CUST_BRANCH_NAME_LEN];
    ///信用级别
    using CreditLevelCodeType = char[CREDIT_LEVEL_CODE_LEN];
    ///平仓标志（1是，2否）
    using CloseoutFlagType = char;
    ///信用额度使用模式（1浮动模式，2固定模式）
    using CreditQuotesModeType = char;
    /// 汇总方式 ('0'或空股东代码，'1'证券代码)
    using SummaryTypeType = char;
    /// 融资融券标志
    using MarginTradingFlagType = char;

    ///是否黑名单（1是，2否）
    using BlacklistFlagType = char;
    ///还款方式（1有钱就还，2指令还款）
    using PaybackMethodType = char;
    ///销售机构
    using InstituCodeType = char[INSTITU_CODE_LEN];
    ///融资信用产品
    using FinancingCreditProductType = char[FINANCING_CREDIT_PRODUCT_LEN];
    ///融券信用产品
    using SecuritiesLoanCreditProductType = char[SECURITIES_LOAN_CREDIT_PRODUCT_LEN];
    ///私用额度权限状态（1-正常2-冻结3-终止）
    using PrivateQuotesAuthStatusType = char;
    ///是否有使用权限（0- 没有权限，1 - 有权限）
    using UseAvaliableFlagType = char;
    ///是否券商私用转融券标的(启用标志 Y-是 N-否)
    using BrokerPrivateTransferSecurityLoanFlagType = char;
    ///设置方式（* 为相对于标准费率按比例 + 为相对于标准费率按净价 空 为直接费率）
    using MethodType = char;
    using FeeType = unsigned char;
    ///处置标志
    using DisposalFlagType = unsigned char;
    ///违约宽限期
    using GracePeriodType = int;
    ///扩展备注长度
    using MemoLenType = int;
    ///扩展备注
    using MemoType = char[MEMO_TYPE];
    /// 综合类备注
    using CompositeNoteType = char[COMPOSITE_NOTE_TYPE];
    /// 产品编号
    using ProductNoType = char[PRODUCT_NO_LEN];
    /// 状态
    using StatusType = char;
    ///数量(最小为10000)
    using NumType = int;
    /// 警示属性
    using WarnPropType = char[WARN_PROP_LEN];
    ///委托类别(预约类别)
    using BookingType = char[BOOKING_TYPE_LEN];

    ///客户所属系统编号
    using CustSysNoType = char[CUST_SYS_NO_TYPE_LEN];
    ///出借股份冻结标志（0-否，1-是（默认））
    using LoanStkFrozenFlagType = char;
    ///是否验证客户资料（0-否，1-是（默认））
    using CustCheckFlagType = char;
    ///是否验证股东资料（0-否，1-是（默认））
    using HolderCheckFlagType = char;
    ///借新还旧合约流水号（委托类别为：0756-借新还旧时必输）
    using BondSerialNoType = char[BOND_SERIAL_NO_TYPE_LEN];
    //券源来源（默认为1，见数据字典1577）
    using StkSrcType = char;
    ///报盘状态（0：未报；1：正报；2：已报）
    using ReportStatusType = char;
    ///报盘柜员
    using ReportOperatorType = char[REPORT_OPERATOR_LEN];
    ///委托来源
    using OrderSrcType = char[ORDER_SRC_LEN];
    ///订单来源
    using OrderSrc2Type = char[ORDER_SRC2_LEN];
    ///对方交易单元
    using OppositeTradeUnitType = char[OPPOSITE_TRADE_UNIT_LEN];
    ///成交约定号
    using  DoneNegoNoType = char[DONE_NEGO_NO_LEN];
    ///约定号
    using  PromiseNoType = char[PROMISE_NO_LEN];
    ///交易签名
    using  TradeSignatureType = char[TRADE_SIGNATURE_LEN];
    ///风险评测结果
    using  RiskTestResultType = char[RISK_TEST_RESULT_LEN];
    ///委托标志（0：普通委托；3：补委托）
    using  OrderFlagType = char;
    ///交易所错误代码
    using ExchangeErrcodeType = char[EXCHANGE_ERRCODE_LEN];
    ///海外委托结算代码
    using ForeignOrderCodeType = char[FOREIGN_ORDER_CODE_LEN];
    ///委托时间戳
    using OrderTimeStampType = char[ORDER_TIME_STAMP_LEN];
    ///订单系统编号
    using OrderSysNoType = char[ORDER_SYS_NO_LEN];
    ///委托柜员
    using OrderOperatorType = char[Order_Operator_LEN];
    ///可撤委托标志（1 表示只查询可撤单的记录,0为全部（默认））
    using CancelableFlagType = int;
    ///交易所错误代码
    using ExchangeErrcodeType = char[EXCHANGE_ERRCODE_LEN];
    //海外委托结算代码
    using ForeignOrderCodeType = char[FOREIGN_ORDER_CODE_LEN];
    ///流水号
    using SerialStrNoType = char[SERIAL_NO_LEN];

    //关联流水号（原合约流水号）
    using RelativeSerialNoType = char[RELATIVE_SERIAL_NO_TYPE_LEN];
    //交易单元
    using TradeUnitType = char[TRADE_UNIT_TYPE_LEN];
    //转融通类别
    using RefinanceType = char;
    //账户类型
    using AccType = char;
    //证件号码
    using CertNoType = char[CERT_NO_TYPE_LEN];
    //客户倾向交易中心
    using SOpenEmpType = char[SOPEN_EMP_TYPE_LEN];
    //柜台版本号
    using StatType = char;
    //融资融券客户权限(R-允许融资融券)
    using CreditCustLimitType = char;
    //开放式基金权限(W-允许开放式基金)
    using OpenFundLimitType = char;
    //客户权限清单
    using CustLimitListType = char[CUST_LIMIT_LIST_TYPE_LEN];
    //报价回购权限(n-允许报价回购)
    using OfferBuyBackLimitType = char;
    //客户是否开通强身份认证(1-为是，0为否，默认为否)
    using CustInfoCheckFlagType = char;
    //该委托方式是否启用强身份认证平台(1-为是，0为否，默认为否)
    using IsForceCheckFlagType = char;
    //目的营业部代码（通买通卖）
    using TradePassWordType = char[TRADE_PASS_WORD_TYPE_LEN];
    //市场名称
    using ExchangeNameType = char[EXCHANGE_NAME_TYPE_LEN];
    //币种名称
    using CurrencyNameType = char[CURRENCY_NAME_TYPE_LEN];
    //上次登入信息
    using LastLoginInfoType = char[LAST_LOGIN_INFO_TYPE_LEN];
    //周边登录校验信息
    using ExtLoginCheckInfoType = char[EXT_LOGIN_CHECK_INFO_TYPE_LEN];
    //返回数量
    using BackNumType = int;
    //市场名称
    using HolderNameType = char[HOLDER_NAME_TYPE_LEN];
    //指定交易标志（Z表示指定，空表示没有指定）
    using SpecifyTradeFlagType = char;
    //账号状态
    using AccountStatusType = char;
    //创业板权限（仅针对创业板股东账号;1- 有权限；其他-无权限）
    using AIMLimitType = char;
    //产品代码
    using ProductCodeType = char[PRODUCT_CODE_TYPE_LEN];
    //业务类型
    using BusiType = char[BUSI_TYPE_LEN];
    //匹配结果
    using ResultType = char;
    //匹配结果详情
    using ResultDetailType = char[RESULT_DETAIL_TYPE_LEN];
    //客户投资期限
    using CustInvestTermType = char[CUST_INVEST_TERM_TYPE_LEN];
    //客户投资品种
    using CustInvestType = char[CUST_INVEST_TYPE_LEN];
    //客户风险等级
    using CustRiskLevelType = char[CUST_RISK_LEVEL_TYPE_LEN];
    //产品投资期限
    using ProductInvestTermlType = char[PRODUCT_INVEST_TERML_TYPE_LEN];
    //产品投资品种
    using ProductInvestType = char[PRODUCT_INVEST_TYPE_LEN];
    //产品风险等级
    using ProductRiskLevelType = char[PRODUCT_RISK_LEVE_LTYPE_LEN];
    //评测版本
    using VersionType = char[VERSION_TYPE_LEN];
    //不适合的风险等级
    using CustLimitType = char[CUST_LIMIT_TYPE_LEN];
    //权限是否存在(0-不存在，1-存在)
    using LimitFlagType = char;
    //业务类型
    using BusiTypeType = char[BUSI_TYPE_TYPE_LEN];
    //投资者类型
    using InvesterType = char[INVESTER_TYPE_LEN];
    //0-信用账户查询普通账户1-普通账户查询信用账户，默认为0
    using QryFlagType = char;
    //证件类型
    using CertType = int;
    //信用资金账户
    using CreditFundAccountType = char[CREDIT_FUND_ACCOUNT_TYPE_LEN];
    //普通资金账户
    using CmnFundAccountType = char[CMN_FUND_ACCOUNT_TYPE_LEN];
    //普通账户席位
    using CmnSeatType = char[CMN_SEAT_TYPE_LEN];
    //通讯密码
    using OmmunicatePwdType = char[OMMUNICATE_PWD_TYPE_LEN];
    //返回信息
    using ReturnInfoType = char[RETURN_INFO_TYPE_LEN];
    //警示信息代码
    using WarnCodeType = char[WARN_CODE_TYPE_LEN];
    //警示信息
    using WarnInfoType = char[WARN_INFO_TYPE_LEN];
    //基金公司代码
    using FundCompanyCodeType = char[FUND_COMPANY_CODE_TYPE_LEN];
    //评测类型
    using EvaluateType = char;
    //评测分值
    using EvaluateScoreType = int;
    //风险承受等级
    using RiskLevelType = char[RISK_LEVEL_TYPE_LEN];
    //评测状态
    using EvaluateStatusType = char;
    //风险等级汉字名称
    using RiskLevelNameType = char[RISK_LEVEL_NAME_TYPE_LEN];
    //客户风险评测方式：(0-基金、股票分开评测；1-综合评测)
    using CustRiskEvaluateType = char;
    //客户投资期限
    using InvestTermType = char[INVEST_TERM_TYPE_LEN];
    //客户投资品种
    using InvestType = char[INVEST_TYPE_LEN];
    ///客户内转流水号
    using InwardSerialNoType = char[INWARD_SERIAL_NO_LEN];

    ///<成交状态名称
    using DoneStatusType = char[DONE_STATUS_TYPE_LEN];
    ///<委托状态名称
    using EntrustStatusType = char[ENTRUST_STATUS_TYPE_LEN];
    ///<委托子业务
    using OrderSubTypeType = char[ORDER_SUB_TYPE_TYPE_LEN];

    ///<定位串
    using Serial0Type = char[SERIAL0_TYPE_LEN];
    ///< 合同编号
    using SorderType = char[SORDER_TYPE_LEN];
    ///< 成交编号
    using SettlementIdType = char[SETTLEMENT_ID_TYPE_LEN];
    ///发布方式
    using PublishTypeType = char;
    ///订单业务代码
    using BusiCodeType = char[BUSI_CODE_TYPE_LEN];
    ///委托类别
    using OrderTypeType = char[ORDER_TYPE_TYPE_LEN];
    ///<来源标志
    using ClientFlagType = char;
    ///<委托来源
    using OrderSourceType = char[ORDER_SOURCE_LEN];
    ///<附加数据
    using ExtendDataType = char[EXTEND_DATA_LEN];

    using InstructType = int;
    ///<订单推送类型
    using OrderChangeTypeType = int;

    /// 合约类型
    using BondType = char;
    /// 确认标记(‘1’-是，其他否)
    using ConfirmFlagType = char;
    ///联系方式
    using PhoneType = char[PHONE_LEN];
    ///交易员
    using TraderType = char[TRADER_LEN];

    using EntrustAttrType = char[ENTRUST_ATTR_LEN];
    //交易所营业部代码
    using BranchIdType = char[BRANCH_ID_LEN];
    //信用标识
    using CashMarginType = char;
    //资金代码
    using ClrCodeType = char[CLR_CODE_LEN];
    ///PD券商标志(1 -是，0 -否)
    using IsPDType = int;
    ///< 价差组別数量
    using SpreadingNumType = int;
    ///< 价差組別序号
    using SpreadingNoType = int;

    /// B股结算会员号类型
    using BShareClearNumType = char[BSHARE_CLEAR_LEN];
    /// 低价委托确认标记类型
    using LowPriceOrderConfFlagType = char[LOWPRICE_ORDERCONF_FLAG_LEN];
    /// 客户委托确认标记
    using CustOrderConfFlagType = char[CUST_ORDERCONF_FLAG_LEN];
    /// 股份性质
    using StockAttributeType = char[STOCK_ATTRIBUTE_LEN];
    using SharePropertyType = char[BUSI_TYPE_LEN];

    /// 公司代码
    using CompanyCodeType = char[COMPANY_CODE_TYPE_LEN];
    /// 公司简称
    using CompanyInfoType = char[COMPANY_INFO_TYPE_LEN];
    /// 股东大会编码
    using HolderMeetingSeqType = char[HOLDER_MEETING_SEQ_TYPE_LEN];
    /// 投票产品代码
    using VoteCodeType = char[VOTE_CODE_TYPE_LEN];
    /// 股东大会类型
    using HolderMeetingTypeType = char[HOLDER_MEETING_TYPE_TYPE_LEN];
    /// 股东大会名称
    using HolderMeetingDescType = char[HOLDER_MEETING_DESC_TYPE_LEN];
    /// 议案编号
    using VoteIdType = char[VOTE_ID_TYPE_LEN];
    /// 议案名称
    using VoteInfoType = char[VOTE_INFO_TYPE_LEN];
    /// 议案类型
    using VoteTypeType = char[VOTE_TYPE_TYPE_LEN];
    /// 累计投票应选数
    using VoteCtrlNumType = int;
    /// 股东身份
    using VoteRoleType = char[VOTE_ROLE_TYPE_LEN];
    /// 议案关系
    using VoteRelationType = char[VOTE_RELATION_TYPE_LEN];
    /// 股份类别
    using StockTypeType = char[STOCK_TYPE_TYPE_LEN];
    /// 股票简称
    using StockNameType = char[STOCK_NAME_TYPE_LEN];
    /// 投票产品代码指引
    using RefCodeType = char[REF_CODE_TYPE_LEN];
    /// 投票简称
    using VoteNameType = char[VOTE_NAME_TYPE_LEN];
    /// 类别
    using TypeType = char;
    /// 操作职工
    using OperSempType = char[OPER_SEMP_TYPE_LEN];
    /// 复核职工
    using ReviSempType = char[OPER_SEMP_TYPE_LEN];
    /// 业务类型
    using BusinessTypeType = char[BUSINESS_TYPE_LEN];
    /// 操作员权限校验
    using OperPermissionType = int;
    /// 券源来源类型(1-证金借入,2-自营提供)
    using StkPoolSrcType = char;
    /// 成交申报类型: '0'-提交成交申报,'2'-接受成交申报,'3'-拒绝成交申报
    using DoneDecType = char;
    /// 客户名称
    using CustNameType = char[CUST_NAME_LEN];
    /// 交易商代码
    using TraderIDType = char[TRADEID_LEN];
    /// 交易主体类型
    using TradeType = char[TRADE_TYPE_LEN];
    /// 交易主体代码
    using TradeCodeType = char[TRADE_CODE_LEN];
    /// 客户成交申报编号
    using CustDeclareIdType = char[CUST_TRADE_ID_LEN];
    /// 发起/接受方交易主体代码
    using TradeIdSubType = char[CUST_TRADE_ID_LEN];
    /// 交易单元
    using TraderUnitType = char[TRADE_UNIT_LEN];
    /// 数据类型
    using DataType = char[BUSI_TYPE_LEN];
    /// 结算方式
    using SettleType = int;
    /// 算法类型
    using AlgoTypeType = char[ALGO_TYPE_LEN];
    /// 收购人编码
    using TenderIDType = char[TENDERID_TYPE_LEN];
    /// 收购人名称
    using TenderNameType = char[TENDERNAME_TYPE_LEN];
    /// 模式
    using ModelType = int;
    /// 状态
    using StatusTypeType = char[STATUS_LEN];
    /// 币种
    using CurrencyType = char[CURRENCYT_LEN];
    /// 融资融券模式模式
    using CreditModeType = char[CREDIT_MODE_TYPE_LEN];
    /// 申报编号
    using DeclareIdType = char[SERIAL0_TYPE_LEN];
    /// 预约号
    using ReserNumType = char[RESER_NO_LEN];
    /// 质押类型类型
    using MortgageTypeType = char[MORTGAGE_TYPE_LEN];
    /// 权益补偿方式类型
    using CompensationMethodType = char[COMPENSATION_METHOD_LEN];
    /// 标的风险标志类型
    using TargetRiskFlagType = char[TARGET_RISK_FlAG_LEN];
    /// 所属板块类型
    using BelongSectionType = char[BELONG_SECTION_LEN];
    /// 证券属性
    using SecVarietyType = int;
    /// 费用类型: '\0'-本金仓单,'1'-占用额度费用,'2'-固定额度费用,'3'-提前还贷费,'4'-逾期罚息,'5'-坏帐罚息,'6'-利息/费用,'9'-复权红利,'A'-罚息
    using FeeFlagType = char;
    /// 是否仅查询本金仓单: '1'-是,'0'-否，返回全部仓单（默认）
    using IsCheckReceiptType = char;
    /// 成交类型
    using DoneTypeType = int;
    /// 资金类型
    using MarginAmtTypeType = int;
    /// 订单执行状态
    using ExecTypeType = char;
    /// 业务标志
    using BusiMarkType = char[BUSI_MARK_TYPE_LEN];
    /// 第二执行编号
    using SecondaryExecIDType = char[SECONDARY_EXEC_ID_LEN];

    /// 非交易业务交易签名
    using NonTradeSignatureType = char[NONTRADE_SIGNATURE_LEN];
    /// 职工代码
    using EmplyerType = char[EMPLYER_TYPE_LEN];
    /// 权益类别
    using RightsTypeType = char[RIGHTS_TYPE_LEN];
    /// 权益编号
    using RightsNoType = char[RIGHTS_NO_LEN];
    /// 上市状态
    using ListedStatusType = char[LISTED_STATUS_LEN];
    /// 公司行为代码
    using CorpCodeType = char[CORP_CODE_LEN];
    /// 公告编号
    using PublicNoType = char[PUBLIC_NO_LEN];
    /// 非交易议案编号
    using BillNoType = char[BILL_NO_LEN];
    /// 中登申报类型
    using ChinaClearReportTypeType = char[CHINA_CLEAR_REPORT_TYPE_LEN];
    /// 中登业务类别
    using ChinaClearBusiTypeType = char[CHINA_CLEAR_BUSI_TYPE_LEN];
    /// ISIN国际代码
    using IsinCodeType = char[ISIN_CODE_LEN];
    /// 客户组别
    using CustGroupType = char[CUST_GROUP_LEN];
    /// 证券类别
    using SecCategoryType = char[SEC_CATEGORY_LEN];
    /// 非交易业务申报状态
    using NonTradeReportStatusType = char;
    /// 非交易申报编号
    using NonTradeReportNoType = char[NONTRADE_REPORTNO_LEN];
    /// 中登流通类型
    using ChinaClearCircTypeType = char;
    /// 中登证券类别
    using ChinaClearSecCategoryType = char[CHINA_CLEAR_SEC_CATEGORY_LEN];
    /// 中登权益类别
    using ChinaClearWrntTypeType = char[CHINA_CLEAR_WRNT_TYPE_LEN];
    /// 辅助代码
    using AssistSecCodeType = char[ASSIST_SEC_CODE_LEN];
    /// 清算编号
    using ClearNoType = char[CLEAR_NO_LEN];
    /// 非交易受理编号
    using NonTradesAcceptNoType = char[NONTRADE_ACCEPTNO_LEN];
    /// 深圳中登业务类别
    using SzChinaClearBusiTypeType = char[SZ_CHINA_CLEAR_BUSI_TYPE_LEN];
    /// 转入托管单元
    using AssignSeatType = char[ASSIGN_SEAT_LEN];
    /// 非交易撤单流水号
    using WithDrawNoType = char[WITHDRAW_NO_LEN];
    /// 销售渠道
    using SaleChannelType = char[SALE_CHANNEL_LEN];
    /// 产品集序号
    using SeqNum = int;
    /// 指令类型
    using InstructionType = char[INSTRUCTION_TYPE];
    /// 主系统流水号
    using MainSysSerialType = char[INDEX_SERIAL_LEN];
    /// 报价回购原成交日期类型
    using OriginDoneNo = char[ORIGIN_DONE_LEN];
    /// 报价回购关联代码
    using RelativeCode = char[RELATIVE_CODE_LEN];
    /// 报价回购报盘合同号
    using RptContract = char[RPT_CONTRACT_LEN];

    /// 业务名称
    using BusinessName = char[BUSINESS_NAME_LEN];
    ///数量类型
    using NumberType = int;
    /// 方向
    using SideType = char;
    ///成交约定号（协议回购）
    using  DealNoType = char[DEAL_NO_LEN];
    //SET号
    using SetNoType = char[SET_NO_TYPE_LEN];
    //SET成交序号
    using SetDoneNoType = char[SET_DONE_NO_TYPE_LEN];
    //查询类型
    using QryType = char[QRY_TYPE_LEN];
    ///到期续约意向
    using RenewFlagType = char;
    /// 质权人名称
    using PledgeeName = char[PLEDGEE_NAME_LEN];
    ///到期状态类型
    using QuoteStatusType = char[QUOTO_STATUS_TYPE];
    /// 初始交易编号
    using TrdMatchIDType = char[TRD_MATCH_ID_TYPE_LEN];
    /// 补充条款
    using SupplementaryTerms = char[SUPPLEMENTARY_TERMS_LEN];
    /// 投资者账户名称类型
    using TradeAccNameType = char[TRADE_ACC_NAME_TYPE_LEN];
    /// 交易商简称类型
    using TradeNameType = char[TRADE_NAME_TYPE_LEN];
    /// 报价申报类型
    using ReportType = char[REPORT_TYPE_LEN];
    ///到期续做类型
    using DueContType = char[DUE_CONT_TYPE];
    /// 合并模式类型
    using MergeModeType = char[MERGEMODE_LEN];
    /// 北交所新债
    using BjNoteType = char[BJNOTETYPE];
    /// 定位串类型
    using PositioningStringType = int;

    /// 精度到毫秒级别的时间，格式为133811231，相当于13：38：11.231，即13时38分11秒231毫秒
    using MillisecondTimeType = int;

    /// 节点属性类型
    using NodeAttributeType = int;

    /// 银证独立转账标志类型
    using BankTransFlagType = char;

    /// 是否默认内转系统类型
    using IsDefTrfSysType = char;

    /// 业务市场集合类型
    using BusiMarketSetType = char[COMPANY_INFO_TYPE_LEN];

    /// 交易所证券类别
    using ExchSecTypeType = char[EXCHSECTYPE_TYPE_LEN];

    ///后续索引条件
    using IndexConditionType = char[INDEX_CONDITION_TYPE];

    ///交收状态
    using DeliverStatsType = char[DELIVER_STATS_TYPE];


    enum class TableType : int
    {
        CUSTINFO = 0,       //客户登录信息
        CUSTHOLDACC,         //客户股东账户对照表
        ORDER,               //委托表
        SECINFO,             //证券基本信息
        FUND,                //资金
        POSITION,            //持仓
        DEALDONE,            //成交
        CUSTBANKACC,         //客户银行账户
        NEWSTKLIMIT,         //新股额度
        ETFINFOPUB,          //ETF基本信息
        ETFINFOBASKETPUB,    //ETF篮子信息
        CUSTCREDITINFO,      //客户信用信息
        CREDITSECCODE,       //信用标的
        CUSTRSRVCRDTSTK,     //融券保底额度
        DTCUSTINFO,          //客户信息
        ASSETPRICE,          //证券公允价格
        CREDITFUNDDETAIL,    //融资仓单
        CREDITFUND,          //融资负债
        CREDITSTOCK,         //融券负债
        CREDITSTOCKDETAIL,   //融券仓单
        FUNDSTKTMPCHANGE,     //资券变动流水
        FUNDTRANSBACK,         //转账流水
        EXTENDAPPLY,         //展期申请
        EXTENDREJECT,        //展期拒绝
        CUSTCREDITRATE,      //客户信用利率
        CREDITRATE,          //信用利率
        VIEWCREDITINTERESTPROCESS, //
        VIEWCREDITINTEREST,  //
        BANKCODEMAP,         //新旧银行代码
        CREDITINTEREST,  //
        CREDITINTERESTPROCESS, //
        XYTRANSENTRUSTINFO,  //大宗委托
        XYTRANSDONE,         //大宗成交
        BUSINESSCODE,        //业务代码与业务名称映射表
        CMNDICT,             //CMN数据字典表
        BRANCHPARAM,         // 营业部参数
        HKENTRUSTINFO,       // 港股委托
        HKDONE,              // 港股成交
        HOTSEXTBUSIDICT,     // 主系统与HOTS之间的业务代码对应
        EXCHANGECURRENCY,    //港股汇率
        SPREADINGINFO,       //最小价差
        MORTGAGE,            //质押券
        VOTEMEETINGINFO,     //投票大会信息
        VOTELISTINFO,        //投票议案信息
        MARGINTRANSAMT,        //保证金历史累计额度
        BONDCODEBANKTOBROKER,  //银行券商间债券代码对照表
        BUTT,                //类型底部
    };

    // 了结标识
    enum PayBackType : char
    {
        UNFINISH = '0',   //未了结
        FINISHED = '1',   //已了结
    };

    enum class TradeSysStatus : int
    {
        TSStatusInvalid = 0,
        TSStatusOpen = 1,        //正常可交易状态
        TSStatusPreClose = 2,    // 闭市准备
        TSStatusPostClose = 3,   // 闭市结束
        TSStatusPreOpen = 4      // 开市准备，接收上场数据
    };

    enum class ReConnectStatus :int
    {
        ReConnectFail = 0,            /// 与柜台建立连接失败， 不再重试
        ReConnecting = 1            /// 与柜台建立连接失败，重试中

    };

    using ExchangeIdType = char;
    namespace ExchangeId {
        static const ExchangeIdType        SH = '1';    ///< 沪A
        static const ExchangeIdType        SZ = '2';    ///< 深A
        static const ExchangeIdType        SHB = '3';    ///< 沪B
        static const ExchangeIdType        SZB = '4';    ///< 深B
        static const ExchangeIdType        NEEQA = '5';    ///< 新三板A
        static const ExchangeIdType        NEEQB = '6';    ///< 新三板B
        static const ExchangeIdType        SH2HK = '8';    ///< 沪港股
        static const ExchangeIdType        OTC = '9';    ///< OTC市场
        static const ExchangeIdType        SZ2HK = 'A';    ///< 深港股
        static const ExchangeIdType        B2H = 'B';    ///< B转H
    }


    ///委托子业务类型
    using SubBusinessTypeType = char[BUSINESS_TYPE_LONG];  ///<该字段已作废


    /// 账户类型
    using AccountTypeType = int;
    namespace AccountType {
        static const AccountTypeType SAVINGS_ACCOUNT = 0;    ///< 储蓄类
        static const AccountTypeType SECURITIES_ACCOUNT = 1;    ///< 证券类
    }

    /// 委托状态类型
    using OrderStatusType = short;
    namespace OrderStatus {
        static const OrderStatusType   UNBIDDING = 0;    ///< 未报
        static const OrderStatusType   PENDING_NEW = 1;    ///< 正报（柜台冻结资金和冻结持仓等操作在此状态之前完成）
        static const OrderStatusType   NEW = 2;    ///< 已报
        static const OrderStatusType   PENDING_CANCEL = 3;    ///< 已报待撤
        static const OrderStatusType   PARTIALLY_FILLED_PENDING_CANCEL = 4;    ///< 部成待撤
        static const OrderStatusType   PARTIALLY_CANCELLED = 5;    ///< 部分撤单
        static const OrderStatusType   OTC_CANCELLED = 6;    ///< 场外撤单
        static const OrderStatusType   PARTIALLY_FILLED = 7;    ///< 部分成交
        static const OrderStatusType   FILLED = 8;    ///< 已成交
        static const OrderStatusType   EXPIRED = 9;    ///< 废单
        static const OrderStatusType   CANCELLED = 10;    ///< 场内撤单
        static const OrderStatusType   TO_BE_CONFIRMED = 19;    ///< 待确认（仅支持大宗委托和港股委托）
        static const OrderStatusType   ESTABLISHED = 68;    ///< 已确认（仅报价回购委托）
        static const OrderStatusType   REJECTED = 69;    ///< 已否决（仅报价回购委托）
        static const OrderStatusType   PENDING = 70;    ///< 待审核（仅报价回购委托）
        static const OrderStatusType   ACCEPTANCE = 71;           ///< 已受理（仅OTC委托）
        static const OrderStatusType   PRE_COMMISSION = 72;     ///< 预委托（仅OTC委托）
        static const OrderStatusType   ALL_FILLED = 75;         ///< 全部成交（仅OTC委托）
        static const OrderStatusType   REPORTED = 76;           ///< 已上报（仅OTC委托）
        static const OrderStatusType   DELEGATION_FAILED = 77;  ///< 委托失败（仅OTC委托）
        static const OrderStatusType   DELEGATION = 79;         ///< 委托（仅OTC委托）
        static const OrderStatusType   CANCEL_THE_ORDER = 81;   ///< 撤单（仅OTC委托
    }

    //锁券状态类型
    using LockStkStatusType = char[2];
    namespace LockStkStatus {
        static const LockStkStatusType   LOCK_STK_SUCCESS = "0";    ///< 锁券成功
        static const LockStkStatusType   LOCK_STK_PARTIAL_FAILED = "1";    ///< 锁券部分成功，部分失败
        static const LockStkStatusType   LOCK_STK_FAILED = "2";    ///< 锁券失败
    }

    //私用券源预约状态
    using PrivateStkSrcStatusType = char[2];
    namespace PrivateStkSrcStatus {
        static const PrivateStkSrcStatusType   NOT_ACCEPTED = "0";    ///< 未受理
        static const PrivateStkSrcStatusType   ACCEPTED = "2";    ///< 已受理
        static const PrivateStkSrcStatusType   PENDING_APPLY = "3";    ///< 待申报
        static const PrivateStkSrcStatusType   APPLIED = "4";    ///< 已申报
        static const PrivateStkSrcStatusType   CANCELLED = "6";    ///< 已撤销
        static const PrivateStkSrcStatusType   PARTIALLY_FILLED = "7";    ///< 部成
        static const PrivateStkSrcStatusType   FILLED = "8";    ///< 已完成
        static const PrivateStkSrcStatusType   EXPIRED = "9";    ///< 废单
        static const PrivateStkSrcStatusType   NOT_RAISED = "a";    ///< 未筹到
    }


    /// 买卖类型
    using DirectionType = char[2];
    namespace Direction {
        static const DirectionType    BUY = "0";    ///< 证券买入
        static const DirectionType    SELL = "1";    ///< 证券卖出
        static const DirectionType    FUND_PURCHASE = "2";    ///< 基金申购
        static const DirectionType    FUND_REDEMPTION = "3";    ///< 基金赎回
        static const DirectionType    PLEDGE_ENTRY = "4";    ///< 质押入库
        static const DirectionType    PLEDGE_OUT = "5";    ///< 质押出库
        static const DirectionType    SUBSCRIBE = "6";     ///< 认购
        static const DirectionType    FUND_CONSOLIDATION = "7";    ///< 基金合并
        static const DirectionType    FUND_SPIN_OFF = "8";    ///< 基金分拆
        static const DirectionType    DEPOSITING = "9";    ///< 转托管
        static const DirectionType  CREDIT_BUY = "I";  ///< 融资买入
        static const DirectionType  CREDIT_SELL = "J";  ///< 融券卖出（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  SELL_SEC_FOR_FUN = "K";  ///< 卖券还款
        static const DirectionType  BUY_SEC_FOR_SEC = "L";  ///< 买券还券
        static const DirectionType  COLLATERAL_SUBMISSION = "O";  ///< 担保品提交（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  COLLATERAL_RETURN = "P";  ///< 担保品返还（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  SEC_DIRECT_TRANSFER = "Q";  ///< 还券划转-直接还券（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  SEC_INSTANT_TRANSFER = "R";  ///< 还券划转-即时还券（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  REMAINING_SEC_TRANSFER = "S";  ///< 余券划转（对应委托的orderType 必须为 MarketOrderFlag：：LimitPrice）
        static const DirectionType  FUND_DIRECT_TRANSFER = "w";  ///< 直接还款( 该字段只适用于委托试算接口ReqQryBatchCreditTradeForTrial)
        static const DirectionType  DEBT_FOR_EQUILTY_SWAP = "M";  ///< 债转股
        static const DirectionType  BLOCK_TRADE_BUY = "A";  ///< 大宗买入
        static const DirectionType  BLOCK_TRADE_SELL = "B";  ///< 大宗卖出
        static const DirectionType  PUT_BOND_EXERCISE = "C";  ///< 债券回售
        static const DirectionType  TENDER_PURCHASE = "T";   ///< 预收要约
        static const DirectionType  TENDER_CANCEL = "U";     ///< 解除预收要约
        static const DirectionType  CASH_OPTION = "V";       ///< 行权/现金选择权
        static const DirectionType  ENQUITY_OPTION = "Z";    ///< 股权激励行权
        static const DirectionType  EXECES_QUOTA_TRANSFER = "Y";    ///< 高管额度转移
    }

    /// 货币代码
    using CurrencyIdType = char;
    namespace CurrencyId {
        static const CurrencyIdType    RMB = '1';    ///< 人民币
        static const CurrencyIdType    USD = '2';    ///< 美元
        static const CurrencyIdType    HKD = '3';    ///< 港币
    }


    /// 现金替代标志
    using CashSubstituteFlagType = char;
    namespace CashSubstituteFlag {
        static const CashSubstituteFlagType   FORBID = '0';    ///< 禁止现金替代（必须有股票）
        static const CashSubstituteFlagType   CAN = '1';    ///< 可以进行现金替代（先用股票，股票不足的话用现金替代）
        static const CashSubstituteFlagType      MUST = '2';    ///< 必须用现金替代
        static const CashSubstituteFlagType      CROSS_MARKET_RETREAT = '3';    ///< 跨市场退补现金替代
        static const CashSubstituteFlagType      CROSS_MARKET_MUST = '4';    ///< 跨市场必须现金替代
        static const CashSubstituteFlagType      NON_SZ_RETREAT = '5';    ///< 非沪深退补现金替代
        static const CashSubstituteFlagType      NON_SZ_MUST = '6';    ///< 非沪深必须现金替代
    }



    /// 查询委托属性类型
    using QueryOrderPropType = int;
    namespace QueryOrderProp {
        static const QueryOrderPropType  ALL = 0;    ///< 全部
        static const QueryOrderPropType  CANCELABLE = 1;    ///< 只查询可撤委托
    }

    /// 市价单类型
    using MarketOrderFlagType = char;
    namespace MarketOrderFlag {
        static const MarketOrderFlagType LimitPrice = '0';    ///< 股票二级市场限价买卖
        static const MarketOrderFlagType FillAndKillForFiveLevel = '1';    ///< 最优五档并撤销委托
        static const MarketOrderFlagType FillAndLimitForFiveLevel = '2';    ///< 最优五档并转限价(深交所不支持)
        static const MarketOrderFlagType BestPriceForOtherParty = '3';    ///< 对方最优价格(上交所不支持)
        static const MarketOrderFlagType BestPriceForParty = '4';    ///< 本方最优价格(上交所不支持)
        static const MarketOrderFlagType FillAndKill = '5';    ///< 即时成交剩余撤销(上交所不支持)
        static const MarketOrderFlagType FillOrKill = '6';    ///< 全额成交或撤销 (上交所不支持)
        static const MarketOrderFlagType FixPriceTradingAfterMarket = 'A';    ///< 盘后固定价格交易（科创板）
        static const MarketOrderFlagType Vote = 'B';  ///< 投票
        static const MarketOrderFlagType CancelPutBondExercise = 'C';  ///< 债券回售撤销
        static const MarketOrderFlagType ZeroShareLimitOrder = 'D';	 ///<港股零股限价盘
        static const MarketOrderFlagType EnhancedLimitOrder = 'E';	 ///<港股增强限价盘
        static const MarketOrderFlagType LimitedPriceBidding = 'F';	 ///<港股竞价限价盘
        static const MarketOrderFlagType DeclarationOfIntent = 'H'; 	///<大宗意向申报
        static const MarketOrderFlagType TransactionConfirmation = 'I';	///<大宗成交确认
        static const MarketOrderFlagType DesignatedCounterpartyTransaction = 'J'; ///<上海固收指定对手方交易
        static const MarketOrderFlagType BondRepurchase = 'K';	///<债券回售
        static const MarketOrderFlagType SubLimitPrice = 'L';	///<大宗定价委托
        static const MarketOrderFlagType Matchmaking = 'M';	///<大宗配对成交
        static const MarketOrderFlagType DeclarationOfExchangeBond = 'N'; ///<可交换债换股申报
        static const MarketOrderFlagType InnovativeAndVentureOfDes = 'O'; ///<创新创业债转股委托
        static const MarketOrderFlagType ClosingPrice = 'P'; ///<收盘价委托
        static const MarketOrderFlagType WeightAveragePrice = 'Q'; ///<加权平均价委托
        static const MarketOrderFlagType TransBusiMarket = 'R'; ///<股转大宗（做市）
        static const MarketOrderFlagType TransBusiTrade = 'S'; ///<股转大宗交易
        static const MarketOrderFlagType TransBusiInquiry = 'T'; ///<股转询价
        static const MarketOrderFlagType TransBusiConvert = 'U'; ///<股转申购
        static const MarketOrderFlagType BondReqReject = 'X'; ///<债券转售回售申报拒绝
        static const MarketOrderFlagType BondReqDone = 'Y'; ///<债券转售回售成交请求
        static const MarketOrderFlagType BondNegotiate = 'V';///<协商成交
        static const MarketOrderFlagType BondNegotiateFilingReject = 'W';///<协商成交申报拒绝
        static const MarketOrderFlagType BondNegotiateDoneDischarge = 'a'; ///<协商成交解除申报
        static const MarketOrderFlagType BondNegotiateDoneDischargeReject = 'b'; ///<协商成交解除申报拒绝
        static const MarketOrderFlagType BondNegotiateMergerFilingAccept = 'c'; ///<协商成交合并申报接受
        static const MarketOrderFlagType BondNegotiateMergerFilingReject = 'd'; ///<协商成交合并申报拒绝
        static const MarketOrderFlagType QuoteOpen = 'e'; ///<报价回购开仓
        static const MarketOrderFlagType QuoteRenew = 'f'; ///<报价回购续约
        static const MarketOrderFlagType QuoteEarly = 'g'; ///<报价回购提前购回
        static const MarketOrderFlagType QuoteStopRenew = 'h'; ///<报价回购续约终止
        static const MarketOrderFlagType QuoteEarlyLargeAmt = 'i'; ///<报价回购大额提前购回预约
        static const MarketOrderFlagType QuoteCanclEarlyLargeAmt = 'j'; ///<报价回购大额提前购回预约撤销
        static const MarketOrderFlagType QuoteStopRenewSubscrb = 'm'; ///<报价回购预约续约终止
    };

    /// 市价单类型(协议)
    using XYMarketOrderFlagType = char[MARKET_ORDER_FLAG_TYPE_LEN];
    namespace XYMarketOrderFlag {
        static const XYMarketOrderFlagType XYLimitPrice = "0";                       ///< 股票二级市场限价买卖
        static const XYMarketOrderFlagType XYFillAndKillForFiveLevel = "1";          ///< 最优五档并撤销委托
        static const XYMarketOrderFlagType XYFillAndLimitForFiveLevel = "2";         ///< 最优五档并转限价(深交所不支持)
        static const XYMarketOrderFlagType XYBestPriceForOtherParty = "3";           ///< 对方最优价格(上交所不支持)
        static const XYMarketOrderFlagType XYBestPriceForParty = "4";                ///< 本方最优价格(上交所不支持)
        static const XYMarketOrderFlagType XYFillAndKill = "5";                      ///< 即时成交剩余撤销(上交所不支持)
        static const XYMarketOrderFlagType XYFillOrKill = "6";                       ///< 全额成交或撤销 (上交所不支持)
        static const XYMarketOrderFlagType XYFixPriceTradingAfterMarket = "A";       ///< 盘后固定价格交易（科创板）
        static const XYMarketOrderFlagType XYVote = "B";                             ///< 投票
        static const XYMarketOrderFlagType XYCancelPutBondExercise = "C";            ///< 债券回售撤销
        static const XYMarketOrderFlagType XYZeroShareLimitOrder = "D";	             ///<港股零股限价盘
        static const XYMarketOrderFlagType XYEnhancedLimitOrder = "E";	             ///<港股增强限价盘
        static const XYMarketOrderFlagType XYLimitedPriceBidding = "F";	             ///<港股竞价限价盘
        static const XYMarketOrderFlagType XYDesignatedCounterpartyTransaction = "J";///<上海固收指定对手方交易
        static const XYMarketOrderFlagType XYBondRepurchase = "K";	                 ///<债券回售
        static const XYMarketOrderFlagType XYDeclarationOfExchangeBond = "N";        ///<可交换债换股申报
        static const XYMarketOrderFlagType XYInnovativeAndVentureOfDes = "O";        ///<创新创业债转股委托
        static const XYMarketOrderFlagType XYClosingPrice = "P";                     ///<收盘价委托
        static const XYMarketOrderFlagType XYWeightAveragePrice = "Q";               ///<加权平均价委托
        static const XYMarketOrderFlagType XYTransBusiMarket = "R";                  ///<股转大宗（做市）
        static const XYMarketOrderFlagType XYTransBusiTrade = "S";                   ///<股转大宗交易
        static const XYMarketOrderFlagType XYTransBusiInquiry = "T";                 ///<股转询价
        static const XYMarketOrderFlagType XYTransBusiConvert = "U";                 ///<股转申购
        static const XYMarketOrderFlagType XYDeclarationOfIntent = "0H"; 	         ///<大宗意向申报
        static const XYMarketOrderFlagType XYTransactionConfirmation = "0I";	     ///<大宗成交确认
        static const XYMarketOrderFlagType XYSubLimitPrice = "0L";                   ///<大宗定价委托
        static const XYMarketOrderFlagType XYMatchmaking = "0M";	                 ///<大宗配对成交
        static const XYMarketOrderFlagType XYBondNegotiateDoneDischarge = "0a";      ///<协商成交解除申报
        static const XYMarketOrderFlagType XYBondNegotiateDoneDischargeReject = "0b";///<协商成交解除申报拒绝
        static const XYMarketOrderFlagType XYBondNegotiateMergerFilingAccept = "0c"; ///<协商成交合并申报接受
        static const XYMarketOrderFlagType XYBondNegotiateMergerFilingReject = "0d"; ///<协商成交合并申报拒绝
        static const XYMarketOrderFlagType XYSetDividendSelect = "0e";               ///<上证基金通开放式基金分红选择
        static const XYMarketOrderFlagType XYReDepositingTransfer = "0f";            ///<上证基金通开放式基金转托管转出
        static const XYMarketOrderFlagType XYBondNegotiate = "0V";                   ///<协商成交
        static const XYMarketOrderFlagType XYBondNegotiateFilingReject = "0W";       ///<协商成交申报拒绝
        static const XYMarketOrderFlagType XYBondReqReject = "0X";                   ///<债券转售回售申报拒绝
        static const XYMarketOrderFlagType XYBondReqDone = "0Y";                     ///<债券转售回售成交请求
        static const XYMarketOrderFlagType XYNqDelistOrder = "0E";                    ///<股转摘牌交易
        static const XYMarketOrderFlagType XYBjBondNegotiate = "0g";                  ///<北交所新债协商成交
    };

    /// 非交易市价单类型
    using NonTradeMarketOrderFlagType = char[3];
    namespace NonTradeMarketOrderFlag {
        static const NonTradeMarketOrderFlagType AcquisitionReport = "A0"; //公司收购申报业务
        static const NonTradeMarketOrderFlagType AcquisitionRevokeReport = "A1"; //公司收购撤销申报
        static const NonTradeMarketOrderFlagType AcquisitionQryReport = "A2"; //公司收购查询申报
        static const NonTradeMarketOrderFlagType AcquisitionCancelOrderReport = "A3"; //公司收购撤单申报
        static const NonTradeMarketOrderFlagType PublicRationReport = "A4"; //公开配售申报
        static const NonTradeMarketOrderFlagType PublicRationRevokeReport = "A5"; //公开配售撤销申报
        static const NonTradeMarketOrderFlagType PublicRationQryReport = "A6"; //公开配售查询申报
        static const NonTradeMarketOrderFlagType PublicRationCancelOrderReport = "A7"; //公开配售撤单申报
        static const NonTradeMarketOrderFlagType RightIssueReport = "A8"; //供股行权申报
        static const NonTradeMarketOrderFlagType RightIssueRevokeReport = "A9"; //供股行权撤销申报
        static const NonTradeMarketOrderFlagType RightIssueReportQry = "AA"; //供股行权申报查询
        static const NonTradeMarketOrderFlagType RightIssueCancelOrderReport = "AB"; //供股行权撤单申报
        static const NonTradeMarketOrderFlagType StockDividendSelectReport = "AC"; //红利股票选择申报
        static const NonTradeMarketOrderFlagType StockDividendSelectRevokeReport = "AD"; //红利股票选择撤销申报
        static const NonTradeMarketOrderFlagType StockDividendSelectReportQry = "AE"; //红利股票选择申报查询
        static const NonTradeMarketOrderFlagType StockDividendSelectCancelOrderReport = "AF"; //红利股票选择撤单申报
        static const NonTradeMarketOrderFlagType VoteReport = "AG"; //投票
        static const NonTradeMarketOrderFlagType SzHkStockConnCustodyTrans = "AH"; //深港通转托管
        static const NonTradeMarketOrderFlagType SzHkStockConnCustodyTransCancelOrder = "AI"; //深港通转托管撤单
        static const NonTradeMarketOrderFlagType SzExecesQuotaTransferReport = "AM"; //高管额度转移申报
        static const NonTradeMarketOrderFlagType SzExecesQuotaTransferCancelOrder = "AN"; //高管额度转移撤销
    };

    /// 转托管类型
    using TransOfCustodyTypeType = int;
    namespace TransOfCustodyType {
        static const TransOfCustodyTypeType StockTransOfCustody = 0; ///< 股票转托管
        static const TransOfCustodyTypeType RightsTransOfCustody = 1; ///< 权益转托管
        static const TransOfCustodyTypeType AllTransOfCustody = 2; ///< 全部转托管
    };

    /// 撤单标识
    using CancelFlagType2 = int;

    /// ETF状态类型
    using ETFStatusType = char;
    namespace ETFStatus {
        static const ETFStatusType NotCreationAndRedemption = '0';    ///< 不允许进行申购和赎回
        static const ETFStatusType CreationAndRedemption = '1';    ///< 允许申购和赎回
        static const ETFStatusType YesCreationNotRedemption = '2';    ///< 允许申购、不允许赎回
        static const ETFStatusType NotCreationYesRedemption = '3';    ///< 不允许申购、允许赎回每日开始交易后不允许改变
    };


    /// 股份性质类型
    using OrderPropType = int;
    namespace OrderProp {
        static const OrderPropType NotRestricted = 0;    ///< 未限售
        static const OrderPropType Restricted = 1;    ///< 限售
    };


    /// 单笔委托
    struct OrderType
    {
        ExchangeIdType           exchangeId;                        ///< [必填]市场代码
        OrderRefType             orderRef;                          ///< [必填]报单引用号，用户维护，需要保证唯一
        SecurityIdType           securityId;                        ///< [必填]证券代码
        DirectionType            direction;                         ///< [必填]买卖类型
        PriceType                limitPrice;                        ///< [必填]委托价格 N(21,4)（转托管业务时，该字段被复用为 对方交易单元）
        VolumeType               totalOriginalVolume;               ///< [必填]委托数量（注：上海市场债券下单买卖入参委托数量单位是张）
        MarketOrderFlagType      orderType;                         ///< [必填]市价类型
        HoldernoType             holderAccNo;                       ///< 股东账号

        SubBusinessTypeType      subBusinessType;                   ///< 委托子业务类型(港股需要填写该字段)  --  该字段已作废
        SourceTerminalInfo       sourceTerminalInfo;                ///< [必填]终端来源
        InstructType             instructid;                        ///< 指令id，股东大会编码（仅投票使用）
        OrderPropType            OrderProp;                         ///< 股份性质（仅债转股使用）
    };

    using ETFMarketType = char;
    namespace ETFMarket {
        static const ETFMarketType OnExchange = '6';    ///< ETF场内委托
        static const ETFMarketType OverTheCounter = '7';    ///< ETF场外委托
    }

    using CreditPayBackType = int;
    namespace CreditPayBack {
        static const CreditPayBackType DirectPayBack = 1;        ///< 直接还款
        static const CreditPayBackType IntentionalPayBack = 2;    ///< 意向还款 系统暂不支持
    }

    using BondStatusType = char;
    namespace BondStatus {
        static const BondStatusType bNormal = '1';                ///<正常
        static const BondStatusType bFrozen = '2';                ///<冻结
    };

    using YesOrNoType = char;
    namespace YesOrNoFlag {
        static const YesOrNoType Yes = 'Y';                ///<是
        static const YesOrNoType No = 'N';                ///<否
    };

    using  TransFundFlagType = int;
    namespace TransFundFlag {
        static const TransFundFlagType General = 0;                   ///<普通转账
        static const TransFundFlagType AccountCancellation = 1;       ///<销户转账
    };

    using GuaranteeCodeType = char[3];
    namespace GuaranteeCode {
        static const GuaranteeCodeType  InitiaMargin = "0";              ///<初始保证金
        static const GuaranteeCodeType  GeneralDeal = "1";              ///<一般买卖
        static const GuaranteeCodeType  Withdrawal = "2";              ///< 取款,
        static const GuaranteeCodeType  TransferHosting = "3";              ///< 转托管,
        static const GuaranteeCodeType  SellingSecurities = "4";              ///< 融券卖出,
        static const GuaranteeCodeType  FinancingBuy = "5";              ///< 融资买入
        static const GuaranteeCodeType  GeneralRiskMonitoring = "6";              ///< 一般风险监控,
        static const GuaranteeCodeType  AdvancedRiskMonitoring = "7";              ///< 高级风险监控,
        static const GuaranteeCodeType  Warning = "8";              ///< 预警,
        static const GuaranteeCodeType  ClosePosition = "9";              ///< 平仓,
        static const GuaranteeCodeType  safety = "10";             ///< 安全,
        static const GuaranteeCodeType  normal = "11";             ///< 正常,
        static const GuaranteeCodeType  InitialMarginRatio = "12";             ///< 初始保证金比例
        static const GuaranteeCodeType  MarginMarginRatio = "13";             ///< 补仓保证金比例,
        static const GuaranteeCodeType  Other = "A";              ///< A-其他*/
    };

    /// 信用标志
    using UserFlagType = char;
    namespace UserFlag {
        static const UserFlagType        UserFlagNormal = '0';    ///< 普通账户
        static const UserFlagType        UserFlagCredit = '1';    ///< 信用账户
    }

    /// 新股中签标志
    using NewStockSignedType = char;
    namespace NewStockSigned {
        static const NewStockSignedType        NoSigned = '0';    ///< 非新股中签标志
        static const NewStockSignedType        Signed = '1';    ///< 新股中签标志
    }

    /// 调整类型
    using AssetTypeType = char;
    namespace assetType {
        static const AssetTypeType AutomaticExrightPrice = '0';    ///< 自动除权公允价格
        static const AssetTypeType SecuritiesPrice = '1';    ///< 证券公允价格
        static const AssetTypeType RefinancingPrice = '2';    ///< 转融通公允价格
        static const AssetTypeType MarginDebtPrice = '3';    ///< 融券负债公允价格
    }

    ///设置方式
    using SetPriceMethodType = char;
    namespace SetPriceMethod {
        static const SetPriceMethodType NoAssetPrice = '0';                ///< 无公允价格
        static const SetPriceMethodType Fixed = '1';                ///< 固定价格
        static const SetPriceMethodType Market = '2';                ///< 按市价比例计算
    }

    ///账户类型
    using CustTypeType = char;
    namespace CustType {
        static const CustTypeType CustNoTYpe = '0';             ///<    客户号
        static const CustTypeType barCodeType = '*';            ///<    条码号或磁卡号
        static const CustTypeType bankCodeType = '#';           ///<    银行代码
        static const CustTypeType SHAStockType = '1';           ///<    上海A股
        static const CustTypeType SZAStockType = '2';           ///<    深圳A股
        static const CustTypeType SHBStockType = '3';           ///<    上海B股
        static const CustTypeType SZBStockType = '4';           ///<    深圳B股
        static const CustTypeType ThreeBoardsA = '5';           ///<    三板A
        static const CustTypeType ThreeBoardsB = '6';           ///<    三板B
        static const CustTypeType SHHKstockType = '8';          ///<    沪港股
        static const CustTypeType SZHKstockType = 'A';          ///<    深港股
        static const CustTypeType B2HstockType = 'B';           ///<     B转H
    }

    ///委托方式
    using EntrustTypeType = char[5];
    namespace EntrustType {
        static const EntrustTypeType ZZWT = "ZZWT";     ///<自助委托
        static const EntrustTypeType DHWT = "DHWT";     ///<电话委托
        static const EntrustTypeType RJWT = "RJWT";     ///<热键委托
        static const EntrustTypeType KSWT = "KSWT";     ///<可视委托
        static const EntrustTypeType GTWT = "GTWT";     ///<柜台委托
        static const EntrustTypeType WSWT = "WSWT";     ///<网上委托
        static const EntrustTypeType JZDH = "JZDH";     ///<集中电话
        static const EntrustTypeType SJWT = "SJWT";     ///<手机委托
        static const EntrustTypeType YMWT = "YMWT";     ///<页面委托
        static const EntrustTypeType BPWT = "BPWT";     ///<股易通
        static const EntrustTypeType STK1 = "STK1";     ///<移动STK
        static const EntrustTypeType HHWT = "HHWT";     ///<宏汇委托
        static const EntrustTypeType YHWT = "YHWT";     ///<银行委托
        static const EntrustTypeType CYWT = "CYWT";     ///<创元委托
        static const EntrustTypeType HSWJ = "HSWJ";     ///<恒生网交
        static const EntrustTypeType WZWT = "WZWT";     ///<网上无证
        static const EntrustTypeType GPRS = "GPRS";     ///<GPRS
        static const EntrustTypeType JTWT = "JTWT";     ///<家庭委托
        static const EntrustTypeType FIX = "FIX";      ///<FIX委托
        static const EntrustTypeType XCWJ = "XCWJ";     ///<现场网交
        static const EntrustTypeType PBWT = "PBWT";     ///<PB委托
        static const EntrustTypeType WBWT = "WBWT";		///<WEB委托
    }
    /// Start added by caosix @20200313
///查询的客户范围
    using QryCustRangeType = char;
    namespace QryCustRange {
        static const QryCustRangeType FixCust = '0';                ///< 0：代码协议客户
        static const QryCustRangeType AllCust = '1';                ///< 1：所有客户
    }

    ///委托风险评测标志  0未评测、1正常、2超风险、3默认评测、4未支持
    using OrderRiskEstimateFlagType = char;
    namespace OrderRiskEstimateFlag {
        static const OrderRiskEstimateFlagType NotEstimated = '0';
        static const OrderRiskEstimateFlagType Normal = '1';
        static const OrderRiskEstimateFlagType Risky = '2';
        static const OrderRiskEstimateFlagType DefaultEstimated = '3';
        static const OrderRiskEstimateFlagType NotSupported = '4';
    }

    /// 品种类别
    using SecTypeType = short;
    namespace SecType {
        static const SecTypeType   NonSupportBussines = 0;    ///<暂不支持业务
        static const SecTypeType   NonCirculationStock = 1;    ///<非流通股
        static const SecTypeType   NetWorkVote = 2;    ///<网上投票
        static const SecTypeType   CodeService = 3;    ///<密码服务
        static const SecTypeType   OpenFundBonusModeSet = 4;    ///<开放式基金分红方式设置
        static const SecTypeType   Bonus = 5;    ///<红利
        static const SecTypeType   NationBondDistribution = 6;    ///<国债分销
        static const SecTypeType   MunicipalBondDistribution = 7;    ///<地方债分销
        static const SecTypeType   CorporateBondDistribution = 8;    ///<公司债分销
        static const SecTypeType   NationalBond = 9;    ///< 国债
        static const SecTypeType   MunicipalBond = 10;    ///< 地方债
        static const SecTypeType   CorporateBond = 11;    ///< 公司债
        static const SecTypeType   EnterpriseBond = 12;    ///< 企业债
        static const SecTypeType   WarrantBond = 13;    ///< 分离交易的可转换公司债
        static const SecTypeType   ConvertibleBond = 14;    ///< 可转债
        static const SecTypeType   AssetBackedSecurities = 15;    ///< 资产证券化
        static const SecTypeType   ConvertSubscribe = 16;    ///<可转债申购(发债)
        static const SecTypeType   ConvertSubFund = 17;    ///<可转债申购款
        static const SecTypeType   ConvertNum = 18;    ///<可转债配号
        static const SecTypeType   AllocateBond = 19;    ///<配债
        static const SecTypeType   BondConvertStock = 20;    ///<债转股
        static const SecTypeType   BondBackSell = 21;    ///<债回售
        static const SecTypeType   RepurchaseRegCancel = 22;    ///<回购登记撤销
        static const SecTypeType   NationalBondPledge = 23;    ///< 国债质押
        static const SecTypeType   MunicipalBondPledge = 24;    ///< 地方债质押
        static const SecTypeType   CorporateBondPledge = 25;    ///< 公司债质押
        static const SecTypeType   EnterpriseBondPledge = 26;    ///< 企业债质押
        static const SecTypeType   WarrantBondPledge = 27;    ///< 分离交易的可转换公司债质押
        static const SecTypeType   SeatRepo = 28;    ///<席位式回购
        static const SecTypeType   BuyOutRepo = 29;    ///<买断式回购
        static const SecTypeType   AccountRepo = 30;    ///< 账户式回购
        static const SecTypeType   CashRate = 31;    ///<兑付兑息
        static const SecTypeType   NationBondFuture = 32;    ///<国债期货
        static const SecTypeType   SpecifyTradeCancel = 33;    ///<指定交易撤销
        static const SecTypeType   newStock = 34;    ///< 新股
        static const SecTypeType   SMEBoardSubscribe = 35;    ///<中小板认购
        static const SecTypeType   SecondBoardSubscribe = 36;	          ///<创业板认购
        static const SecTypeType   SubscribeMoneyOrIncreaseMoney = 37;    ///<申购款或增发款
        static const SecTypeType   SubscribeOrIncreaseCode = 38;          ///< 申购或增发配号
        static const SecTypeType   RationSubscribe = 39;    ///<配售申购
        static const SecTypeType   RationCode = 40;    ///<配售配号
        static const SecTypeType   AllocateStockBond = 41;    ///<配股配债
        static const SecTypeType   MainBoardTransactions = 42;    ///< 主板股票交易
        static const SecTypeType   SMEBoardTransactions = 43;    ///< 中小板股票交易
        static const SecTypeType   SecondBoardTransactions = 44;    ///< 创业板股票交易
        static const SecTypeType   OfferBuyout = 45;    ///<要约收购
        static const SecTypeType   FundSubscribe = 46;    ///<基金申购
        static const SecTypeType   FundSubscribeMoney = 47;    ///<基金申购款
        static const SecTypeType   FundSubscribeCode = 48;    ///<基金申购配号
        static const SecTypeType   ExchangeOpenFundSub = 49;    ///<场内开放式基金认购
        static const SecTypeType   InvestFund = 50;    ///<投资基金
        static const SecTypeType   GeneralFund = 51;    ///<普通基金
        static const SecTypeType   ExchangeOpenFundTradeRedemption = 52;    ///<场内开放式基金交易申赎
        static const SecTypeType   ExchangeOpenFundTransMarketCustody = 53;    ///<场内开放式基金跨市场转托管
        static const SecTypeType   ExchangeOpenFundConvert = 54;    ///<场内开放式基金基金转换
        static const SecTypeType   ETFFundSub = 55;    ///<ETF基金认购
        static const SecTypeType   ETFFundTransactions = 56;    ///< ETF基金交易
        static const SecTypeType   ETFFundredemption = 57;    ///< ETF基金申赎
        static const SecTypeType   ETFSubFundTransfer = 58;    ///<ETF申购资金过户
        static const SecTypeType   ETFBuyFundTransfer = 59;    ///<ETF认购资金过户
        static const SecTypeType   StockTransfer = 60;    ///<股份转让
        static const SecTypeType   QuoteTransfer = 61;    ///<报价转让
        static const SecTypeType   WarranCreateCancel = 62;    ///<权证创设注销
        static const SecTypeType   Warrant = 63;    ///<权证
        static const SecTypeType   MarginSecTransfer = 64;    ///<余券划转
        static const SecTypeType   RestoreSecTransfer = 65;    ///<还券划转
        static const SecTypeType   AssureCommit = 66;    ///<担保品提交
        static const SecTypeType   AssureReturn = 67;    ///<担保品返还
        static const SecTypeType   QuoteRepurchaseVariety = 68;    ///<报价回购品种
        static const SecTypeType   StandardSec = 69;    ///<标准券
        static const SecTypeType   PreStockTrade = 70;    ///<优先股交易
        static const SecTypeType   PreStockSub = 71;    ///<优先股认购
        static const SecTypeType   ETFCurrencyTrade = 72;    ///<货币ETF交易
        static const SecTypeType   MaterialBondETFTrade = 73;    ///<实物债券ETF交易
        static const SecTypeType   GoldETFTrade = 74;    ///<黄金ETF交易
        static const SecTypeType   HuMarketLOFTradeRedemption = 75;    ///<沪市LOF交易申赎
        static const SecTypeType   UpdateCurrencyFundRe = 76;    ///<实时申赎货币基金申赎
        static const SecTypeType   CrossBorderETFTrade= 77;    ///<跨境ETF交易
        static const SecTypeType   CashBondETFTrade = 78;    ///<现金债券ETF交易
        static const SecTypeType   DRTrade = 79;    ///<存托凭证交易
        static const SecTypeType   ExchangeBondPledge = 80;    ///<可交换债券质押
        static const SecTypeType   MainBoardStockIncreaseIssue = 81;    ///<主板股票增发
        static const SecTypeType   SMEBoardIncreaseIssue = 82;    ///<中小板增发
        static const SecTypeType   SecondBoardIncreaseIssue = 83;    ///<创业板增发
        static const SecTypeType   StarMarketStockTrade = 84;    ///<科创板股票交易
        static const SecTypeType   StarMarketNewStock = 85;    ///< 科创板新股申购
        static const SecTypeType   SSEDRTrade = 88;    ///<创业板存托凭证交易
        static const SecTypeType   InfrastructureFundTrade = 89;    ///<基础设施基金交易
        static const SecTypeType   ExchangeBond = 90;    ///<可交换债券
        static const SecTypeType   PrivatePlacement = 91;    ///< 私募债
        static const SecTypeType   SecCompanyShortBond = 92;    ///<证券公司短债
        static const SecTypeType   SecCompanySubBond = 93;    ///<证券公司次级债
        static const SecTypeType   ExchangeBondDistribution = 94;    ///<可交换债分销
        static const SecTypeType   OneClickCustody = 95;    ///<一键转托管
        static const SecTypeType   CommFutureETFTrade = 96;    ///<商品期货ETF交易
        static const SecTypeType   DRSub = 97;    ///<存托凭证申购
        static const SecTypeType   SecondBoardDRSub = 98;    ///<创业板存托凭证申购
        static const SecTypeType   StarMarketDRSub = 99;    ///<科创板存托凭证申购
        static const SecTypeType   StarMarketETFTrade = 100;    ///<科创板ETF交易
        static const SecTypeType   StarMarketETFSub = 101;    ///<科创板ETF申赎
        static const SecTypeType   DirectExchangeBondTrade = 102;    ///<定向可转债交易
        static const SecTypeType   SHCrossBorderETFSub = 103;    ///<上海跨境ETF申赎
    }

    ///  融券标识
    using CreditFlagType = char;
    namespace creditFlag {
        static const CreditFlagType NormalFlag = '\0';    ///< 空：正常查询
        static const CreditFlagType CreditListFlag = '1';        ///< 1：已融券清单（股票负债）
        static const CreditFlagType    PurchasedStockFlag = '2';        ///< 2:可融资买入的证券
        static const CreditFlagType    SoldStockFlag = '3';        ///< 3:可融券卖出的证券
    }
    /// 操作功能
    using OperFeature = char;
    namespace operFeature {
        static const OperFeature Detail = '1';    ///< '1' 明细，逐条返回当前客户所有持仓数据
        static const OperFeature Total = '2';     ///< '2' 汇总，返回当前客户同一个市场下同一个证券代码，不同股东账户的累加市值和累加浮动盈亏等数据
        static const OperFeature OnlyTotal = '3'; ///< '3' 不含明细的总市值，只返回一条当前客户所有持仓累加市值，累加总资产，累加浮动盈亏，不逐条返回当前客户持仓信息
    }
    /// 是否返回合计值
    using IsRetTotalVal = char;
    namespace isRetTotalVal {
        static const IsRetTotalVal Ret = '1'; ///< '1'：返回合计值，其他不返回
    }

    /// 资金负债类型
    using FundDebtType = char;
    namespace fundDebt {
        static const FundDebtType AllCreditInfo = '1'; ///< 输出融资融券相关信息
        static const FundDebtType CreditSecSell = '2'; ///< 融券卖出
        static const FundDebtType BuyAndRetSec  = '3'; ///< 买券还券
        static const FundDebtType DirectRetSec  = '4'; ///< 直接还券
        static const FundDebtType MoneyPayBack  = '5'; ///< 还款
        static const FundDebtType CreditFundBuy = '6'; ///< 融资买入
    }

    /// 登录类型
    using UsrAccCheckType = char;
    namespace UsrAccCheck {
        static const UsrAccCheckType AccCheck = '7'; ///< 账号校验(SPX - 1)
        static const UsrAccCheckType LoginWithoutPwd = '8'; ///< 免密登录(SPX - 8001)
    }

    /// 转账发起方
    using FundTransSourceType = char;
    namespace FundTransSource {
        static const FundTransSourceType    FromAPI = '1';    ///< 券商端发起
        static const FundTransSourceType    FromBank = '3';   ///< 银行端发起
    }

    /// 委托类别类型
    using EntrustOrderTypeType = char;
    namespace EntrustOrderType {
        static const EntrustOrderTypeType    BlockTradeBuy = '1';    ///< 大宗买入
        static const EntrustOrderTypeType    BlockTradeSell = '2';   ///< 大宗卖出
    }

    ///券池模板编号类型
    using StkPoolTmplNoType = char[STK_POOL_TMPL_NO];
    namespace StkPoolTmplNo {
        static const StkPoolTmplNoType SecuritiesFinancePubish = "0001";  ///< 证金发布0001
        static const StkPoolTmplNoType ProprietaryTrading0002 = "0002";   ///< 自营发布0002
        static const StkPoolTmplNoType ProprietaryTrading0003 = "0003";   ///< 自营发布0003
        static const StkPoolTmplNoType ProprietaryTrading0004 = "0004";   ///< 自营发布0004
        static const StkPoolTmplNoType ProprietaryTrading0005 = "0005";   ///< 自营发布0005
    }

    /// 融资融券标的类别标志
    using CreditTargetFlagType = char;
    namespace CreditTargetFlag {
        static const CreditTargetFlagType CreditBuyFlag = '0';      ///< 融资标的
        static const CreditTargetFlagType CreditSellFlag = '1';     ///< 融券标的
        static const CreditTargetFlagType GuaranteeFlag = '2';      ///< 担保品标的
    }
}
